示例#1
0
 /// <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;
 }
示例#2
0
 /// <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);
 }
示例#3
0
 internal ParseNode(ParseExpression expression)
 {
     this.Expression = expression;
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FailedParseNode"/> class.
 /// </summary>
 /// <param name="expression">The expression.</param>
 public FailedParseNode(ParseExpression expression)
     : base(expression)
 {
 }
示例#5
0
 /// <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;
 }