Ejemplo n.º 1
0
 /// <summary>
 /// Folds a negated unicode category terminal node.
 /// </summary>
 /// <param name="negatedUnicodeCategoryTerminal"></param>
 /// <param name="argument">The argument to be passed to the visitor method.</param>
 /// <returns>
 /// <list type="number">
 /// <item>The original node if it's to be kept</item>
 /// <item>A different node to replace the original node with</item>
 /// <item>Null if the node is to be removed</item>
 /// </list>
 /// </returns>
 protected override GrammarNode <Char>?VisitNegatedUnicodeCategoryTerminal(NegatedUnicodeCategoryTerminal negatedUnicodeCategoryTerminal, TArgument argument) => negatedUnicodeCategoryTerminal;
Ejemplo n.º 2
0
 /// <summary>
 /// Visits a negated unicode category terminal.
 /// </summary>
 /// <param name="negatedUnicodeCategoryTerminal"></param>
 /// <param name="argument">The argument data passed by the caller.</param>
 /// <returns>The result of visiting this node.</returns>
 protected abstract TReturn VisitNegatedUnicodeCategoryTerminal(NegatedUnicodeCategoryTerminal negatedUnicodeCategoryTerminal, TArgument argument);
Ejemplo n.º 3
0
 protected override String?VisitNegatedUnicodeCategoryTerminal(NegatedUnicodeCategoryTerminal negatedUnicodeCategoryTerminal, Unit argument) => null;
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new set element.
 /// </summary>
 /// <param name="negatedUnicodeCategoryTerminal"></param>
 public SetElement(NegatedUnicodeCategoryTerminal negatedUnicodeCategoryTerminal) : this((GrammarNode <Char>)negatedUnicodeCategoryTerminal)
 {
 }