private int ParseInteger() { Token token = this.NextToken(); if (token == null || token.Type != TokenType.Integer) throw new ParserException("Integer Expected"); return Convert.ToInt32(token.Value, CultureInfo.InvariantCulture); }