示例#1
0
  protected String repeat(Repeat repeat, RBNF rbnf) {
    TreeNode e = repeat.getExpression();
    if (e == null) return null;

    String s = expression(e, rbnf);
    if (s == null) return null;

    if (repeat.isMin()) {
      return "(" + s + ")*?";
    } else {
      return "(" + s + ")*";
    }
  }