private string ParseName() { Token token = this.lexer.NextToken(); if (token == null) throw new ParserException("Expected a name"); if (token.TokenType == TokenType.Name) return token.Value; throw new ParserException("Expected a name"); }