[antlr-interest] "continue tryAgain" and Multi-lexing
dotlessbraille
easjolly at ix.netcom.com
Sat Jul 31 13:45:41 PDT 2004
I use a master lexer with multiple slave lexers to parse a grammar
which includes multi-character symbols based on a prefix-root
system. When the master lexer recognizes a prefix, it triggers the
switch to the appropriate slave lexer. The slave lexer lexes the
root of the symbol as a single token and immediately returns control
to the master lexer.
In this situation, it isn't appropriate for the slave lexer
to "continue tryAgain" when it fails to recognize the input; instead
control should be returned to the master lexer. Is there
any way within ANTLR to get rid of this loop?
SusanJ
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