public Seq(ElementNode e) { this(new ElementNode[] { e }); }
public Seq(ElementNode[] elements) { this.elements = elements; }
public Atom toAtom(Context cx) {
- if (elements.length != 1) throw new Error("FIXME");
+ if (elements.length != 1) throw new Error("you attempted to use ->, **, ++, or a similar character-class operator on a [potentially] multicharacter production");
return elements[0].toAtom(cx);
}
public Seq tag(String tag) { this.tag = prefix+tag; return this; }