Zy logo Zy

Loading editor...

pat:
  | ""
  | paren pat
  | pat \
    | "x"
    | "-"
paren: $pat -> "(" \ pat \ ")"
""
"()"
"x"
"(())"
"()x"
"(x)"
"-"
"((()))"
"()-"
"(()x)"
"xx"
"((x))"
"(())x"
"(-)"
"x-"
"(((())))"
"(())-"
"(()-)"
"()xx"
"((()x))"