[antlr-interest] conditional print
Thierry USO
thierry.uso at wanadoo.fr
Sun Dec 13 02:45:09 PST 2009
Hello,
extract of my grammar:
procedural_statement
: WS? builtin_procedure_name WS? '(' argument (',' argument)*)? ')' WS?
;
builtin_procedure_name
: CALL_CMD | EXECUTE_CMD | DB_OPEN | DB_CLOSE | DEFINE_LOGICAL
CALL_CMD
: 'CALL_CMD'
;
etc...
I want to get (print) the procedural_statement only when its builtin_procedure_name is CALL_CMD or EXECUTE_CMD. What is the more elegant way to do that ?
Thanks for your help.
More information about the antlr-interest
mailing list