| 512 | |
| 513 | |
| 514 | void luaX_next (LexState *ls) { |
| 515 | ls->lastline = ls->linenumber; |
| 516 | if (ls->lookahead.token != TK_EOS) { /* is there a look-ahead token? */ |
| 517 | ls->t = ls->lookahead; /* use this one */ |
| 518 | ls->lookahead.token = TK_EOS; /* and discharge it */ |
| 519 | } |
| 520 | else |
| 521 | ls->t.token = llex(ls, &ls->t.seminfo); /* read next token */ |
| 522 | } |
| 523 | |
| 524 | |
| 525 | int luaX_lookahead (LexState *ls) { |