| 586 | |
| 587 | |
| 588 | void luaX_next (LexState *ls) { |
| 589 | ls->lastline = ls->linenumber; |
| 590 | if (ls->lookahead.token != TK_EOS) { /* is there a look-ahead token? */ |
| 591 | ls->t = ls->lookahead; /* use this one */ |
| 592 | ls->lookahead.token = TK_EOS; /* and discharge it */ |
| 593 | } |
| 594 | else |
| 595 | ls->t.token = llex(ls, &ls->t.seminfo); /* read next token */ |
| 596 | } |
| 597 | |
| 598 | |
| 599 | int luaX_lookahead (LexState *ls) { |