[antlr-interest] Get string from cmd output when run jar file about parsetree

beginner.nguyen beginner.nguyen at gmail.com
Sat Nov 27 19:24:18 PST 2010


Hi, all
I use antlr-3.2.jar tool to general java code of a grammar, after that  I
built a program by java language to output a parsetree. 
When i run my program in cmd with input string: "which tour beggin ain
11/11/2010 ?" 
then a message appear in cmd: "line 1:19 no viable alternative at character
'a'". I know that the message appear because I type incorrect at "ain",
correct must be "in". But I want to get that message and set into a string
variable. could you help me.(I have attached a image)
Thank you very much. looking forward from you.
http://antlr.1301665.n2.nabble.com/file/n5780991/h2.jpg 
-- 
View this message in context: http://antlr.1301665.n2.nabble.com/Get-string-from-cmd-output-when-run-jar-file-about-parsetree-tp5780991p5780991.html
Sent from the ANTLR mailing list archive at Nabble.com.


More information about the antlr-interest mailing list