예제 #1
0
 public AtomGroup(RegexAtom atom, int min = 1, int?max = 1)
 {
     RegexAtom = atom; Limits = new Limits(min, max);
 }
 public void Add(RegexAtom atom)
 {
     Choices.Last().Add(atom);
 }
 public static RegexRepetitionModifier Maybe(RegexAtom atom)
 {
     return new RegexRepetitionModifier((RegexNonTerminalAtom) atom, 0, 1);
 }
 public static RegexRepetitionModifier ZeroOrMore(RegexAtom atom)
 {
     return new RegexRepetitionModifier((RegexNonTerminalAtom)atom, 0, null);
 }
예제 #5
0
 public void Add(RegexAtom atom)
 {
     Atoms.Add(atom);
 }