/// <summary> /// Initializes a new instance of the <see cref="ScopeParseExpression"/> class. /// </summary> /// <param name="expression">The expression.</param> /// <param name="isChild">if set to <c>true</c> the scope is a child scope..</param> /// <param name="initializer">The initializer.</param> /// <param name="finalizer">The finalizer.</param> public ScopeParseExpression(ParseExpression expression, bool isChild, Action<ParseScope> initializer, Action<ParseScope> finalizer) { this.expression = expression; this.isChild = isChild; this.initializer = initializer; this.finalizer = finalizer; }
/// <summary> /// Provides a Generic ParseNode that specifies a general failure for the specified expression. /// </summary> /// <param name="expression">The expression.</param> /// <returns>A ParseNode that specifies a general failure for the specified expression.</returns> public static ParseNode Failed(ParseExpression expression) { return new FailedParseNode(expression); }
internal ParseNode(ParseExpression expression) { this.Expression = expression; }
/// <summary> /// Initializes a new instance of the <see cref="FailedParseNode"/> class. /// </summary> /// <param name="expression">The expression.</param> public FailedParseNode(ParseExpression expression) : base(expression) { }
/// <summary> /// Initializes a new instance of the <see cref="ConcatParseNode"/> class. /// </summary> /// <param name="expression">The expression.</param> /// <param name="nodes">The nodes.</param> internal ConcatParseNode(ParseExpression expression, ParseNode[] nodes) : base(expression) { this.Children = nodes; }