[antlr-interest] ambiguity ?
mzukowski at yci.com
mzukowski at yci.com
Thu Apr 18 10:03:36 PDT 2002
This is antlr's linear approximate lookahead at work. Please see the FAQ
about it.
Monty
> -----Original Message-----
> From: Lloyd Dupont [mailto:lloyd at galador.net]
> Sent: Thursday, April 18, 2002 12:33 AM
> To: antlr
> Subject: [antlr-interest] ambiguity ?
>
>
> why these rules ares ambiguous (in a Lexer) ?
> #-------------------
> DIV_ASSIGN : "/=" ;
>
> SL_COMMENT :
> ( "//" | '#' )
> (~('\n'|'\r'))* ('\n'|'\r'('\n')?)
> ;
> #-------------------
> while these ones are not !
> #-------------------
> DIV_ASSIGN : "/=" ;
>
> SL_COMMENT_1 :
> "//" (~('\n'|'\r'))* ('\n'|'\r'('\n')?)
> ;
>
> SL_COMMENT_2 :
> '#'
> (~('\n'|'\r'))* ('\n'|'\r'('\n')?)
> ;
>
> #-------------------
>
> ????
>
>
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list