| 560 | |
| 561 | |
| 562 | void luaX_next (LexState *ls) { |
| 563 | ls->lastline = ls->linenumber; |
| 564 | if (ls->lookahead.token != TK_EOS) { /* is there a look-ahead token? */ |
| 565 | ls->t = ls->lookahead; /* use this one */ |
| 566 | ls->lookahead.token = TK_EOS; /* and discharge it */ |
| 567 | } |
| 568 | else |
| 569 | ls->t.token = llex(ls, &ls->t.seminfo); /* read next token */ |
| 570 | } |
| 571 | |
| 572 | |
| 573 | int luaX_lookahead (LexState *ls) { |