From: adam Date: Thu, 6 Jul 2006 07:46:07 +0000 (-0400) Subject: checkpoint X-Git-Tag: tag_for_25-Mar~180 X-Git-Url: http://git.megacz.com/?p=sbp.git;a=commitdiff_plain;h=439f7fedebf5fdf586c18e6c3ce0c50e703ec0ed checkpoint darcs-hash:20060706074607-5007d-71c755196f8260a73f61602fd95e0eddf70ef6e4.gz --- diff --git a/src/edu/berkeley/sbp/meta/MetaGrammarBindings.java b/src/edu/berkeley/sbp/meta/MetaGrammarBindings.java index da0204a..2d06422 100644 --- a/src/edu/berkeley/sbp/meta/MetaGrammarBindings.java +++ b/src/edu/berkeley/sbp/meta/MetaGrammarBindings.java @@ -59,6 +59,36 @@ public class MetaGrammarBindings { this.sep = sep; } public Element build(MetaGrammar.Context cx) { return cx.get(name); } + public void build(MetaGrammar.Context cx, Union u) { + if (!rep) { super.build(cx, u); return; } + HashSet bad2 = new HashSet(); + + Union urep = new Union(); + urep.add(Sequence.empty); + urep.add(Sequence.singleton(new Element[] { cx.get(sep), u }, 1)); + + for(int i=0; i - "[]":: { UL:: uli+/ws } Itemx - | "[]":: { OL:: oli+/ws } Itemx - > "[]":: pre Itemx - > "[]":: link Itemx - > "[]":: structured Itemx - > "[]":: styled Itemx - > "[]":: (Chars:: alphanum++) Itemx - > "[]":: "\"" text "\"" Itemx - > "[]":: (Symbol:: sym++) Itemx - > "[]":: { Block:: text } Itemx + "[]":: { UL:: uli+/ws } ((ws! Item) | ()) + | "[]":: { OL:: oli+/ws } ((ws! Item) | ()) + > "[]":: pre ((ws! Item) | ()) + > "[]":: link ((ws! Item) | ()) + > "[]":: structured ((ws! Item) | ()) + > "[]":: styled ((ws! Item) | ()) + > "[]":: (Chars:: alphanum++) ((ws! Item) | ()) + > "[]":: "\"" text "\"" ((ws! Item) | ()) + > "[]":: (Symbol:: sym++) ((ws! Item) | ()) + > "[]":: { Block:: text } ((ws! Item) | ()) + //blockquote = Blockquote:: "\"\"" (block | text "\"\"")