AjRools.Expert.Compiler.Lexer.NextName C# (CSharp) Метод

NextName() приватный Метод

private NextName ( char ch ) : Token
ch char
Результат Token
        private Token NextName(char ch)
        {
            string value = ch.ToString();
            int ich;

            for (ich = this.NextChar(); ich != -1 && (char.IsLetterOrDigit((char)ich) || ((char)ich)=='_'); ich = this.reader.Read())
                value += (char)ich;

            if (ich != -1)
                this.PushChar(ich);

            if (value == "false" || value == "true")
                return new Token(value, TokenType.Boolean);

            return new Token(value, TokenType.Name);
        }