I would like to ask how to make input recognition for ANTLRv3 (especially v3.4) with Java Eclipse. From Antlr example here ANTLR: Is there a simple example?, the input has been initialized in the code. ANTLRStringStream in = new ANTLRStringStream("12*(5-6)");
What I wanted is the system could recognize/read user input and then do the calculation.
I have read this too: Extending simple ANTLR grammer to support input variables but this doesn't work for me.