Is it a bug of plugin? #645
Unanswered
UniquePerch
asked this question in
Q&A
Replies: 1 comment
-
Hi, In your current grammar, the input
But because the lexing phase happens before the parsing phase, ANTLR will match it to a I think you should rework your grammar to transform your |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For example:
I have a parser defination of [seq]:
Notice the last defination of [seq] : seq_function SEMI?
It has been defined as followd:
I also have a lexer defination of [POINT_D] (defined in another g4 file):

Then I import a whole lexer defination(However,if I use tokenVocab to associated lexer file, it also happens),use the plugin to generate parse tree(input:"seq(1,2)"), something unexpected happened , plugin regard my input "(1,2)" as a POINT_D lexer.

I don't know whether it is my mistake or it is just a bug of this plugin?
Beta Was this translation helpful? Give feedback.
All reactions