[antlr-interest] How to define the path
    SPR 
    SPR0125 at gmail.com
       
    Sun Mar 25 22:04:49 PDT 2012
    
    
  
I am new to ANTLR and need help in writing grammar file.
I have a rule defined that as soon as it sees word *TRACK* followed by name 
it should start evaluating the name like function/procedure call.
Ex:
TRACK ABCNames
Write "Testing this call"
ABCNames 
If 1  >  2 then TRUE
Else
FALSE
Here its like a function call. As soon as it sees TRACK it should
look for the name and ignore the write statement and follow the path to 
name (ABCNames) and evaluate that name is right.
How do I achieve this.I am not sure how to evaluate names.
Any suggesstion and help is appreciated.
--
View this message in context: http://antlr.1301665.n2.nabble.com/How-to-define-the-path-tp7404827p7404827.html
Sent from the ANTLR mailing list archive at Nabble.com.
    
    
More information about the antlr-interest
mailing list