| 550 | |
| 551 | |
| 552 | void luaX_next (LexState *ls) { |
| 553 | ls->lastline = ls->linenumber; |
| 554 | if (ls->lookahead.token != TK_EOS) { /* is there a look-ahead token? */ |
| 555 | ls->t = ls->lookahead; /* use this one */ |
| 556 | ls->lookahead.token = TK_EOS; /* and discharge it */ |
| 557 | } |
| 558 | else |
| 559 | ls->t.token = llex(ls, &ls->t.seminfo); /* read next token */ |
| 560 | } |
| 561 | |
| 562 | |
| 563 | int luaX_lookahead (LexState *ls) { |