public static @bind.as("{") class XTree extends El {
public @bind.arg Seq body;
public Element build(MetaGrammar.Context cx) {
- throw new Error();
+ Union u = new Union();
+ Sequence s = body.build(cx, u, false);
+ Union u2 = new Union();
+ u2.add(Sequence.singleton(new Element[] {
+ CharRange.leftBrace,
+ cx.get("ws"),
+ u,
+ cx.get("ws"),
+ CharRange.rightBrace
+ }, 2));
+ return u2;
}
}