[antlr-interest] Help for a beginner
elimesika
elim at tti-telecom.com
Sun Feb 24 08:05:02 PST 2002
HI folks
I am new to antlr and I have several questions:
I have the following rules for my language parser :
procArgs
:
LPAREN (ID|STRING_LITERAL|INT)* RPAREN
;
proc
:
LPAREN PROC procArgs LPAREN (statement)+ RPAREN RPAREN
;
questions:
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 !
Thanks
Eli
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list