| 615 | |
| 616 | |
| 617 | static void statlist(LexState *ls) { |
| 618 | /* statlist -> { stat [';'] } */ |
| 619 | while (!block_follow(ls, 1)) { |
| 620 | if (ls->t.token == TK_RETURN) { |
| 621 | statement(ls); |
| 622 | return; /* 'return' must be last statement */ |
| 623 | } |
| 624 | statement(ls); |
| 625 | if (ls->L->force_stopping) |
| 626 | break; |
| 627 | } |
| 628 | if (ls->L->force_stopping) |
| 629 | { |
| 630 | if (nullptr == ls->L->compile_error) |
| 631 | { |
| 632 | lua_set_compile_error(ls->L, "forced stoppping in compile"); |
| 633 | } |
| 634 | } |
| 635 | } |
| 636 | |
| 637 | |
| 638 | static void fieldsel(LexState *ls, expdesc *v) { |