[antlr-interest] Help for a beginner
elim at tti-telecom.com
Sun Feb 24 08:05:02 PST 2002
I am new to antlr and I have several questions:
I have the following rules for my language parser :
LPAREN (ID|STRING_LITERAL|INT)* RPAREN
LPAREN PROC procArgs LPAREN (statement)+ RPAREN RPAREN
1) statement is a rule, how do I get the text of each staement in
the "(statement)+" expression in the proc rule.
2) how do I get the value of the argument in the procArgs rule,I have
tried (v:(ID|STRING_LITERAL|INT))* , that didn't work !
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest