TestRig output for lexer grammars

18 views
Skip to first unread message

Anakreontas Mentis

unread,
Apr 28, 2015, 5:38:07 AM4/28/15
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
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
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:
Reply all
Reply to author
Forward
0 new messages