Пример #1
0
 public bool EqualsToToken( Token other ) {
     return TokenType == other.TokenType;
 }
Пример #2
0
		public Token GetLookAhead()
		{
			Utl.Assert( LookAhead == null );
			LookAhead = _Lex();
			return LookAhead;
		}
Пример #3
0
        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();
        }
Пример #4
0
        public void Next()
        {
			LastLine = LineNumber;
            if( LookAhead != null )
            {
                Token = LookAhead;
                LookAhead = null;
            }
            else
            {
                Token = _Lex();
            }
        }
Пример #5
0
 public void Next()
 {
     LastLine = LineNumber;
     if( LookAhead != null )
     {
         Token = LookAhead;
         LookAhead = null;
     }
     else
     {
         Token = _Lex();
     }
     // Debug.Log("Next:" + Token );
 }