Lines Matching refs:inloop
36 int inloop = 0; /* = 1 if in while, for, do */ variable
124 FOR '(' opt_simple_stmt ';' opt_nl pattern ';' opt_nl opt_simple_stmt rparen {inloop++;} stmt
125 { --inloop; $$ = stat4(FOR, $3, notnull($6), $9, $12); }
126 | FOR '(' opt_simple_stmt ';' ';' opt_nl opt_simple_stmt rparen {inloop++;} stmt
127 { --inloop; $$ = stat4(FOR, $3, NIL, $7, $10); }
128 | FOR '(' varname IN varname rparen {inloop++;} stmt
129 { --inloop; $$ = stat3(IN, $3, makearr($5), $8); }
317 BREAK st { if (!inloop) SYNTAX("break illegal outside of loops");
319 | CONTINUE st { if (!inloop) SYNTAX("continue illegal outside of loops");
321 | do {inloop++;} stmt {--inloop;} WHILE '(' pattern ')' st
338 | while {inloop++;} stmt { --inloop; $$ = stat2(WHILE, $1, $3); }