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