Interpreter ANTLR Runtime Error

When I run the interpreter as follows,

Running method

to create a parse tree in ANTLR 3.4 (in eclipse 3.7), it shows

Error message

An internal error occurred during: "ANTLR Event Listener". To enter string: "false"

When I run the second version of Debug(Java) , it does not give any error or parsing tree.

How can i solve this?

thanks

+4
source share
3 answers

Without using an interpreter.

No, this is not a joke :). AFAIK, antlrv3ide uses interpreter- and debugging components from ANTLRWorks. And the ANTLRWorks interpreter is pretty wrong. However, its debugger works like a charm: use it.

+3
source

I had this problem when I used antlr-3.4-complete.jar but I changed it to antlr-3.2.jar and even if it gives me FailedPredicateExeption I can still run it using java in the interpreter and create a grammar tree in the interpreter. download antlr jar: antlr-3.2.jar

+2
source

refer bla said, my here, change from antlr-3.5-complete.jar to antlr-3.3-complete.jar , then fix this problem.

for details, reference may be made Internal error occurred during: "ANTLR Event Listener". For input line: "false"

-one
source

Source: https://habr.com/ru/post/1399418/


All Articles