[antlr-interest] conditional print
thierry.uso at wanadoo.fr
Sun Dec 13 02:45:09 PST 2009
extract of my grammar:
: WS? builtin_procedure_name WS? '(' argument (',' argument)*)? ')' WS?
: CALL_CMD | EXECUTE_CMD | DB_OPEN | DB_CLOSE | DEFINE_LOGICAL
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