[antlr-interest] unexpected token error
Jerry Dy
jerrydy at sbcglobal.net
Thu Mar 11 12:57:02 PST 2004
I have the following simple grammar. When I compile, I get an
unexpected token error. When remove the '*' behind the DATA token,
then it works! Just curious why it's an error? Thanks!
-Jerry
options { language="Cpp"; }
class PageParser extends Parser;
options { buildAST = true; }
page: DATA*
;
class PageLexer extends Lexer;
options { charVocabulary = '\3'..'\377'; }
DATA: ('a'..'z')+
;
ANTLR Parser Generator Version 2.7.3 (20040224-91) 1989-2003
jGuru.com
soac.g:4:7: rule classDef trapped:
soac.g:4:7: unexpected token: DATA
error: aborting grammar 'PageParser' due to errors
Exiting due to errors.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list