[antlr-interest] Minor issue with ANTLRWorks Debugger Show input Tokens
Gøran K. Olsen
goranko2000l at hotmail.com
Wed Oct 31 11:47:55 PDT 2007
Hello,
I am just wondering if there are any known bugs to the functionality "Show input tokens" in ANTLRWorks or if it is my grammar that is suspect.
It seems that white-space at the end of an input text for a PCDATA messes things up a bit. After such input, the red marking around tokens becomes quite odd.
The parse tree seems to be correct, but to enable the blue colour on the correct token in the parse tree I have to miss the mark in the input consol (increases for each PCDATA containing white-space at the end).
White-space in front and in between works fine.
] hello world[ -> ok
] hello world [ ->not ok
PCDATA
:{!bracketMode}?=>~('[')+
;
I also get an exception for every "consume step" after:
[19:16:28] javax.swing.text.BadLocationException: Position not represented by view
at javax.swing.text.CompositeView.modelToView(Unknown Source)
at javax.swing.text.BoxView.modelToView(Unknown Source)
at javax.swing.plaf.basic.BasicTextUI$RootView.modelToView(Unknown Source)
at javax.swing.plaf.basic.BasicTextUI.modelToView(Unknown Source)
at javax.swing.plaf.basic.BasicTextUI.modelToView(Unknown Source)
at javax.swing.text.JTextComponent.modelToView(Unknown Source)
at org.antlr.works.debugger.input.DBInputProcessorToken$1.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Best Regards,
Gøran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20071031/de863aa7/attachment.html
More information about the antlr-interest
mailing list