public bool EqualsToToken( Token other ) { return TokenType == other.TokenType; }
public Token GetLookAhead() { Utl.Assert( LookAhead == null ); LookAhead = _Lex(); return LookAhead; }
public LLex( ILuaState lua, ILoadInfo loadinfo, string name ) { Lua = (LuaState)lua; LoadInfo = loadinfo; LineNumber = 1; LastLine = 1; Token = null; LookAhead = null; _Saved = null; Source = name; _Next(); }
public void Next() { LastLine = LineNumber; if( LookAhead != null ) { Token = LookAhead; LookAhead = null; } else { Token = _Lex(); } }
public void Next() { LastLine = LineNumber; if( LookAhead != null ) { Token = LookAhead; LookAhead = null; } else { Token = _Lex(); } // Debug.Log("Next:" + Token ); }