4
votes

When i run the interpreter as follows,

Running method

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

Error message

An internal error occurred during: "ANTLR Event Listener". For input string: "false"

When I run the second option Debug(Java) it doesn't give any error nor parse tree.

How can I resolve this?

Thanks

3
I am facing exactly same problem. i.e On running, the "error" comes up. Strangely, clicking on save, makes the parse tree correctly. If you have sorted out the problem, please share it here. - Vinayak Garg

3 Answers

3
votes

By not using the interpreter.

No, it's not joke :). AFAIK, antlrv3ide uses the interpreter- and debug-components from ANTLRWorks. And ANTLRWorks' interpreter is rather buggy. However, its debugger works like a charm: so use that.

2
votes

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

-1
votes

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

for detail, can refer An internal error occurred during: "ANTLR Event Listener". For input string: "false"