/// <summary> Construct a parser using the provided lexer and feedback object. /// This would be used to create a parser for special cases where the /// normal creation of a lexer on a URLConnection needs to be customized. /// </summary> /// <param name="lexer">The lexer to draw characters from. /// </param> /// <param name="fb">The object to use when information, /// warning and error messages are produced. If <em>null</em> no feedback /// is provided. /// </param> public Parser(Lexer lexer, IParserFeedBack fb) { Feedback = fb; if (null == lexer) { throw new System.ArgumentException("lexer cannot be null"); } Lexer = lexer; NodeFactory = new PrototypicalNodeFactory(); }
/// <summary> Construct a parser using the provided lexer and feedback object. /// This would be used to create a parser for special cases where the /// normal creation of a lexer on a URLConnection needs to be customized. /// </summary> /// <param name="lexer">The lexer to draw characters from. /// </param> /// <param name="fb">The object to use when information, /// warning and error messages are produced. If <em>null</em> no feedback /// is provided. /// </param> public Parser(Lexer lexer, IParserFeedBack fb) { Feedback = fb; if (null == lexer) throw new System.ArgumentException("lexer cannot be null"); Lexer = lexer; NodeFactory = new PrototypicalNodeFactory(); }