AjErl.Compiler.Lexer.NextInteger C# (CSharp) Method

NextInteger() private method

private NextInteger ( char ch ) : Token
ch char
return Token
        private Token NextInteger(char ch)
        {
            string value = ch.ToString();
            int ich;

            for (ich = this.NextChar(); ich != -1 && char.IsDigit((char)ich); ich = this.NextChar())
                value += (char)ich;

            if (ich != -1 && (char)ich == '.')
                return this.NextReal(value);

            this.PushChar(ich);

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