[antlr-interest] AntLR Bug
Michael Labhard
ince at pacifier.com
Mon Feb 4 05:52:18 PST 2002
Terrance and Monty:
Sorry, I didn't see Monty's reply or your new FAQ before sending the last
message. The solution in Monty's reply and in your FAQ appear to be very
similar. For my needs the solution does not work. The same warning occurs.
Here is the most recent lexer file:
class L extends Lexer;
options { k=2; }
NAME_TOKEN
: GRAPHIC_TOKEN
;
END_TOKEN
:
END_CHAR
( options {greedy=true;} :
GRAPHIC_TOKEN_CHAR {setType(GRAPHIC_TOKEN);}
)+
;
protected GRAPHIC_TOKEN
:
( (END_CHAR GRAPHIC_TOKEN_CHAR) | GRAPHIC_TOKEN_CHAR)
(END_CHAR | GRAPHIC_TOKEN_CHAR)*
;
protected GRAPHIC_TOKEN_CHAR
: GRAPHIC_CHAR
;
protected GRAPHIC_CHAR
: ('#'|'$'|'&'|'*'|'+'|'/'|
|':'|'<'|'='|'>'|'?'|'@'|'^'|'~');
protected END_CHAR:
'.'
;
Thanks for your assistance.
-- Michael
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list