- allow multiple expressions in 'for' iteration part.
This commit is contained in:
parent
b38934b532
commit
3f9ad55432
2 changed files with 10 additions and 1 deletions
|
|
@ -1859,6 +1859,7 @@ for_init(X) ::= for_bump(A). { X = A /*X-overwrites-A*/; }
|
|||
%type for_bump{ZCC_Statement *}
|
||||
for_bump(X) ::= . { X = NULL; }
|
||||
for_bump(X) ::= expression_statement(A). { X = A; /*X-overwrites-A*/ }
|
||||
for_bump(X) ::= for_bump(A) COMMA expression_statement(B). { X = A; /*X-overwrites-A*/ AppendTreeNodeSibling(X, B); }
|
||||
|
||||
/*----- If Statements -----*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue