[antlr-interest] dummy ambiguity question

Lloyd Dupont lloyd at galador.net
Sun Jul 6 21:12:21 PDT 2003


no worries, probably my mistake, it has gone away ? !!!

----- Original Message -----
From: "lloyd_from_far" <lloyd at galador.net>
To: <antlr-interest at yahoogroups.com>
Sent: Monday, July 07, 2003 1:01 PM
Subject: [antlr-interest] dummy ambiguity question


> sorry for the dummy question, I'm doing some ANTLR again and fall in
> the traps for young player again :-)
>
> how to express the below grammar simply ?
> (the problem is the DOT rule, I want a top level DOT token, but I
> don't manage to lex it !):
> ---------- myLexer.g --------------
> DOT : '.' ;
> NUMBER
>     :
>     (
>             N DOT N
>             | DOT N
>             | N DOT
>         )
>         ( 'e' ( PLUS | MINUS )? N )?
>     ;
> protected N : ( '0' .. '9' ) + ;
>
>
>
>
>
> 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