> the names have to be TParser, TLexer
Okay, I changed the names to TParser and TLexer. (Why did you recommend this? Is there a restriction on the length of file names? Are underscores not allowed in filenames?)
Nonetheless, the same error message is produced. Here are the commands I entered at the DOS command line:
antlr4 TLexer.g4
antlr4 TParser.g4
javac *.java
grun TParser test -gui
Here is the error that is generated:
Exception in thread "main" java.lang.ClassCastException: class TParser
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)
What does that error message mean?
/Roger