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