[antlr-interest] I need help!
placr at hotmail.com
Wed Jan 5 01:51:28 PST 2005
> > -----Original Message-----
> > From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> > bounces at antlr.org] On Behalf Of Pascal Lacroix
> > Sent: Wednesday, 5 January 2005 3:03 AM
> > To: antlr-interest at antlr.org
> > Subject: [antlr-interest] I need help!
> > Hello,
> > I've written a grammar for the Common Intermediate Language but there
> > some nondeterminisms.
> > I'm a newbie and I need help to remove these warnings (if it's
> > There are the errors:
> > ANTLR Parser Generator Version 2.7.4 1989-2004 jGuru.com
> > cil.g:1436: warning:nondeterminism upon
> > cil.g:1436: k==1:LBRACK
> > cil.g:1436: k==2:INTEGER_LITERAL,TRIPLE_DOT
> > cil.g:1436: between alt 6 and exit branch of block
> > cil.g:1566: warning:nondeterminism upon
> > cil.g:1566: k==1:LBRACK
> > cil.g:1566: k==2:RBRACK
> > cil.g:1566: between alt 1 and exit branch of block
> > cil.g:519:25: warning:lexical nondeterminism between alts 1 and 2 of
> > upon
> > cil.g:519:25: k==1:'E','e'
> > cil.g:519:25: k==2:<end-of-token>
>Hey you don't look like a newbie, that's a pretty complicated grammar!!
>I couldn't find the first one, the grammar was just too messy and all over
>the place, and I've been searching for quite a while.
>The second one is between "nativeTypePostFix" and "variantTypePostFix"...
>might be either LBRACK RBRACK in line 1516 or line 1566 (zero or more times
>for each of them).
>The last one is between the 'e' or 'E' in 'a'..'f' (line 519) and the 'e'
>'E' in EXPONENT (line 523/530) ...
>PhD research student
It's true that it's a complicated grammar (but that's Microsoft fault!).
Could you give me some advices to make a better grammar?
Thanks for your help, I'll try to remove thoses nondeterminismes.
More information about the antlr-interest