You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to antlr-di...@googlegroups.com
I think it would be helpful if TestRig offered two additional options that would print for lexer grammars the current lexer mode and the contents of the mode stack.
Anakreontas Mentis
unread,
Apr 28, 2015, 5:51:14 AM4/28/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to antlr-di...@googlegroups.com
Actually, it would be helpful when the lexer produces an error. Knowing the current mode and the contents of the stack would help debugging the lexer.
Anakreontas Mentis
unread,
May 1, 2015, 9:00:49 AM5/1/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to antlr-di...@googlegroups.com
The solution is to override notifyListeners and peek the mode stack for the current mode.
On Tuesday, April 28, 2015 at 10:38:07 AM UTC+1, Anakreontas Mentis wrote: