Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NParser"/> class.
 /// </summary>
 /// <param name="textQuery">The text query.</param>
 /// <param name="astFactory">The ast factory.</param>
 public NParser(string textQuery, ASTNodeFactoryBase astFactory)
     : this(textQuery)
 {
     _astFactory = astFactory;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NParser"/> class.
 /// </summary>
 /// <param name="textQuery">The parser output.</param>
 public NParser(string textQuery)
 {
     _scanner = new Scanner(textQuery);
     _astFactory = new ASTNodeFactory();
 }