| 54 | } |
| 55 | |
| 56 | void LuaParser::Next() { |
| 57 | auto tk = Current(); |
| 58 | auto me = MarkEvent(MarkEventType::EatToken); |
| 59 | me.U.Token.Kind = tk; |
| 60 | me.U.Token.Index = _tokenIndex; |
| 61 | _events.push_back(me); |
| 62 | _tokenIndex++; |
| 63 | _invalid = true; |
| 64 | } |
| 65 | |
| 66 | void LuaParser::NextAs(LuaTokenKind kind) { |
| 67 | auto me = MarkEvent(MarkEventType::EatToken); |