[antlr-interest] Why is this nondeterminism
Trey Spiva
Trey.Spiva at embarcadero.com
Tue Jun 18 09:16:23 PDT 2002
I am receiving the errors:
warning: nondeterminism upon
k==1:LPAREN
k==2:IDENT
k==3:IDENT,RPAREN,"as"
between alts 1 and 2 of block
for the following rules. Can any one give me an idea of
why the rules are nodeterministic.
eventStatement
: "event" IDENT ( LPAREN eventArgListDef RPAREN )?
;
protected
eventArgListDef
: argumentModifiers IDENT ( "as" type )?
;
argumentModifiers
: ( argumentModifier )*
{#argumentModifiers = #(#[MODIFIERS,"MODIFIERS"], #argumentModifiers);}
;
protected
argumentModifier
: "optional"
| "byval"
| "byref"
;
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list