/// <summary> /// Parse a name. /// </summary> /// /// <param name="parser">The parser to use.</param> /// <returns>The name.</returns> private static String ParseName(SimpleParser parser) { var result = new StringBuilder(); parser.EatWhiteSpace(); while (parser.IsIdentifier()) { result.Append(parser.ReadChar()); } return(result.ToString()); }