Example #1
0
 public QuantifierEntry(TokenPrimitiveEntry primitiveEntry, QuantifierKind kind, QuantifierMode mode)
 {
     PrimitiveEntry = primitiveEntry;
     Kind           = kind;
     Mode           = mode;
     Range          = QuantifierHelper.GetRange(kind);
 }
Example #2
0
 public TokenInterQuantifier(TokenInterPrimitiveEntry primitiveEntry, QuantifierKind kind, QuantifierMode mode = QuantifierMode.Greedy)
 {
     PrimitiveEntry = primitiveEntry;
     Range          = QuantifierHelper.GetRange(kind);
     Kind           = kind;
     Mode           = mode;
 }
 public ParserQuantifierEntry(ParserPrimitiveEntry primitiveEntry, QuantifierKind kind, QuantifierMode mode)
 {
     PrimitiveEntry = primitiveEntry;
     Kind           = kind;
     Range          = QuantifierHelper.GetRange(kind);
     Mode           = mode;
 }
Example #4
0
            public QuantifierEntry(PrimitiveEntry primitiveEntry, QuantifierKind kind, QuantifierMode mode)
            {
                PrimitiveEntry = primitiveEntry;
                Kind           = kind;
                Mode           = mode;

                var range = QuantifierHelper.GetRange(kind);

                Minimum = range.Minimum;
                Maximum = range.Maximum;
            }