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