[antlr-interest] dummy ambiguity question
lloyd_from_far
lloyd at galador.net
Sun Jul 6 20:01:23 PDT 2003
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/
More information about the antlr-interest
mailing list