hime
hime copied to clipboard
Assign children name
Wouldn't it be nice if we could do:
for_statement -> 'for'! '('! initial=(expression_statement | declaration) condition=expression_statement post_operation=expression? ')'! body=statement;
Instead of:
for_statement_initial -> expression_statement | declaration;
for_statement_condition -> expression_statement;
for_statement_post_operation -> expression;
for_statement_body -> statement;
for_statement -> 'for'! '('! for_statement_initial for_statement_condition for_statement_post_operation? ')'! for_statement_body;