[antlr-interest] How to deal with subset characters for lette r-Thanks in advance

mzukowski at yci.com mzukowski at yci.com
Tue Mar 11 14:34:56 PST 2003


E, S and L need to be keywords, not separate lexer rules.

Monty

-----Original Message-----
From: reserve78705 [mailto:reserve78705 at yahoo.com]
Sent: Tuesday, March 11, 2003 2:33 PM
To: antlr-interest at yahoogroups.com
Subject: [antlr-interest] How to deal with subset characters for
letter-Thanks in advance


Hi,
I have been trying to use the following grammar rule:
marker: E | S | L;

Then, in the lexer, I have two rules:
LETTER: (a..z| A.. Z);
E: 'e';
S: 's';
L: 'l';

But the antlr give the nondeterminism error for that. Does anyone 
have some ideas for it? Thanks in advance.

Yu-



 

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