Ejemplo n.º 1
0
 public static ExpressionBase <T> RepeatNonGreedy(ExpressionBase <T> expression, int minOccur, int?maxOccur = null)
 {
     return(new RepetitionExpr <T>(expression, minOccur, maxOccur ?? minOccur, false));
 }
Ejemplo n.º 2
0
 public static ExpressionBase <T> OneOrManyNonGreedy(ExpressionBase <T> expression)
 {
     return(RepeatNonGreedy(expression, 1, int.MaxValue));
 }
Ejemplo n.º 3
0
 public static ExpressionBase <T> ZeroOrMany(ExpressionBase <T> expression)
 {
     return(Repeat(expression, 0, int.MaxValue));
 }
Ejemplo n.º 4
0
 public static ExpressionBase <T> ZeroOrOneNonGreedy(ExpressionBase <T> expression)
 {
     return(RepeatNonGreedy(expression, 0, 1));
 }
Ejemplo n.º 5
0
 public static ExpressionBase <T> ZeroOrOne(ExpressionBase <T> expression)
 {
     return(Repeat(expression, 0, 1));
 }