public int IntNum(Num num) { return int.Parse(num.Text); }
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) }; }
public SreExpr Action(Num num) { return new SreExpr { Node = ActionNode.Create(int.Parse(num.Text)) }; }
public SreExpr NOrMoreMatches(Num n, OpenSreExpr inner) { int count = int.Parse(n.Text); return new SreExpr { Node = new RepeatNode(inner.Node, count, int.MaxValue) }; }