public static @bind.as Seq psx(Seq s) { return s; }
public static @bind.as(":") ElementNode colon(String s, ElementNode e) { return new Label(s, e); }
public static @bind.as(")") void close(String foo) { throw new Error("not supported"); }
- public static @bind.as("()") ElementNode epsilon() { return new Constant(Union.epsilon); }
+ public static @bind.as("()") ElementNode epsilon() { return new Constant(epsilon); }
+
+ private static Union epsilon = new Union("()");
+ static { epsilon.add(Sequence.empty); }
public static class NonTerminalReferenceNode extends ElementNode {
public String nonTerminal;