| 64 | } |
| 65 | |
| 66 | void LuaParser::NextAs(LuaTokenKind kind) { |
| 67 | auto me = MarkEvent(MarkEventType::EatToken); |
| 68 | me.U.Token.Kind = kind; |
| 69 | me.U.Token.Index = _tokenIndex; |
| 70 | _events.push_back(me); |
| 71 | _tokenIndex++; |
| 72 | _invalid = true; |
| 73 | } |
| 74 | |
| 75 | LuaTokenKind LuaParser::LookAhead() { |
| 76 | std::size_t nextIndex = _tokenIndex + 1; |