[antlr-interest] Interactive processing of input

NeoPhyte 20neophyte08 at gmail.com
Mon Apr 11 02:19:48 PDT 2011


Will this method allow me to process each line in an input file individually.
Like if my grammar has multiple rules and I want to process each of these
rules individually....
Something like...

say my grammar has following 3 individual parser rules

rule1 : ....
rule2 : ....
rule3: ...

final : (rule1|rule2|rule3)+;

//rest of the lexer and parser rules

and my i/o is

read input for rule1
show output for rule1

read input for rule3
show output for rule3

read input for rule1
show output for rule1

an so on, until I use something like an EOF(ctrl-z)....

with the method suggested by you, can I achieve this?...and if so can u plz
provide a sample code for the same....



--
View this message in context: http://antlr.1301665.n2.nabble.com/Interactive-processing-of-input-tp6260368p6260754.html
Sent from the ANTLR mailing list archive at Nabble.com.


More information about the antlr-interest mailing list