[antlr-interest] Synchronizing error messages from filter
dotlessbraille
easjolly at ix.netcom.com
Fri Jul 30 10:36:32 PDT 2004
I am using a custom filter rule when the lexer finds an unexpected
item. This rule simply skips ahead to the next statement and
outputs a warning message to the user.
There is a problem if a parser rule has caused the lexer to look
ahead several tokens. In this case, the warning message will appear
out of order to the user because it will show up as soon as the
lexer encounters it, before the parser has generated its output from
correct tokens immediately preceding the unexpected item.
Is there any standard way to queue up this message?
Thanks,
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