[antlr-interest] Redifinition of token in tokens {...}: CTAGBEGIN
Jerry Dy
jerrydy at sbcglobal.net
Wed Mar 17 14:29:05 PST 2004
Hi,
Why do I get an error "Redifinition of token in tokens {...}:
CTAGBEGIN" for the following grammar?
Below parser with token reference to CTAGBEGIN seem to be causing the
problem. Thanks!
-Jerry
options { language="Cpp"; }
class PageParser extends Parser;
test: CTAGBEGIN
;
class PageLexer extends Lexer;
tokens { CTAGBEGIN; }
OTAGBEGIN: '<' ('/' {$setType(CTAGBEGIN)})?
;
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