/// <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(); }
/// <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; }
public void SetupFixture() { factory = new ASTNodeFactory(); }