X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2Fmisc%2FMetaGrammar.java;h=dd9436803a015537d54975da6ec6b96632d6c46c;hp=e30312ebe8c6cbcfe75212f088225d0f108925da;hb=58255f1146299de97dcc40a0392866308f44006d;hpb=87c66a88436dc16965e1dcdf504119612a81f362 diff --git a/src/edu/berkeley/sbp/misc/MetaGrammar.java b/src/edu/berkeley/sbp/misc/MetaGrammar.java index e30312e..dd94368 100644 --- a/src/edu/berkeley/sbp/misc/MetaGrammar.java +++ b/src/edu/berkeley/sbp/misc/MetaGrammar.java @@ -83,18 +83,10 @@ public class MetaGrammar extends ReflectiveWalker { if (s instanceof String) s = CharToken.string((String)s); return new Rep(r, (Element)s, false, false); } - public Object _dollar__dollar_(final Element r, Object s) { - if (s instanceof String) s = CharToken.string((String)s); - return new Rep(r, (Element)s, false, false); - } public Object _star__slash_(final Element r, Object s) { if (s instanceof String) s = CharToken.string((String)s); return new Rep(r, (Element)s, false, true); } - public Object _percent__percent_(final Element r, Object s) { - if (s instanceof String) s = CharToken.string((String)s); - return new Rep(r, (Element)s, false, true); - } //public Element _star__slash_(final Element r, Element s) { return Repeat.many0(r, s); } public Object _star__star_(final Element r) { return new Rep(r, null, true, true); } public Object _plus__plus_(final Element r) { return new Rep(r, null, true, false); } @@ -368,6 +360,7 @@ public class MetaGrammar extends ReflectiveWalker { + // DO NOT EDIT STUFF BELOW: IT IS AUTOMATICALLY GENERATED new Tree(null, "gram", new Tree[] { new Tree(null, null, new Tree[] { }), new Tree(null, "grammar", new Tree[] { new Tree(null, null, new Tree[] { new Tree(null, "::=", new Tree[] { new Tree(null, "sify", new Tree[] { new Tree(null, null, new Tree[] { new Tree(null, "s", new Tree[] { })})}), @@ -951,3 +944,4 @@ new Tree(null, "gram", new Tree[] { new Tree(null, null, new Tree[] { }), +