private void IsValidName(string name) { if (reserved.Contains(name)) throw new ParserException(string.Format("Invalid name '{0}'", name)); }