You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is a grammar (http://pastebin.com/Higjrcrb) where I accidentally misdefined variable names (rule Nimi), so that it doesn't allow single character names.
To my surprise when I tested rule "avaldis" in ANTRL4 IntelliJ plugin (plugin version 1.0.2, IntelliJ version 13.1.1) with input 1+a+2+2, it gave me nice and wrong parse tree which was simply missing the a:
The text was updated successfully, but these errors were encountered:
When I add a space after a, so that input becomes 1+a +2+2, it shows me the error in parse tree. The result is same whether I define separate skippable whitespace rule or not.
interesting. it should skip the a and space as bad tokens not to appear in the tree. I guess there is no error printed for you to see. This is a plugin issue not antlr :) I will add issue there.
Here is a grammar (http://pastebin.com/Higjrcrb) where I accidentally misdefined variable names (rule Nimi), so that it doesn't allow single character names.
To my surprise when I tested rule "avaldis" in ANTRL4 IntelliJ plugin (plugin version 1.0.2, IntelliJ version 13.1.1) with input 1+a+2+2, it gave me nice and wrong parse tree which was simply missing the a:
The text was updated successfully, but these errors were encountered: