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
Exception in thread "main" java.lang.ClassCastException: class HelloP
at java.lang.Class.asSubclass(Unknown Source)
at org.antlr.v4.runtime.misc.TestRig.process(TestRig.java:159)
at org.antlr.v4.runtime.misc.TestRig.main(TestRig.java:143)
Contents of sample.txt
hello parrt
These are the contents of the folder I work in (the batch files contain basically the commands above - but I also tested it directly in the shell):
The text was updated successfully, but these errors were encountered:
Since I've split the file "Hello.g4" into "HelloL.g4" (lexer) "HelloP.g4" (parser)
there is no combined grammer "Hello" anymore, only a lexer (HelloL) and a parser (HelloP).
I had the same issues as in this issue: #147 and the fix also worked for me.
I then tried to separate the lexer from the parser and I get an exception when I try to run the TestRig.
file HelloL.g4:
file HelloP.g4:
I then run these commands:
I then get this exception:
Contents of sample.txt
These are the contents of the folder I work in (the batch files contain basically the commands above - but I also tested it directly in the shell):
The text was updated successfully, but these errors were encountered: