Esempio n. 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;
 }
Esempio n. 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);
 }
Esempio n. 3
0
 internal ParseNode(ParseExpression expression)
 {
     this.Expression = expression;
 }
Esempio n. 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)
 {
 }
Esempio n. 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;
 }