Пример #1
0
 public int IntNum(Num num)
 {
     return int.Parse(num.Text);
 }
Пример #2
0
 public SreExpr NToMMatches(Num n, Num m, OpenSreExpr inner)
 {
     int from = int.Parse(n.Text);
     int to = int.Parse(m.Text);
     return new SreExpr { Node = new RepeatNode(inner.Node, from, to) };
 }
Пример #3
0
 public SreExpr Action(Num num)
 {
     return new SreExpr { Node = ActionNode.Create(int.Parse(num.Text)) };
 }
Пример #4
0
 public SreExpr NOrMoreMatches(Num n, OpenSreExpr inner)
 {
     int count = int.Parse(n.Text);
     return new SreExpr { Node = new RepeatNode(inner.Node, count, int.MaxValue) };
 }