checkpoint
[sbp.git] / src / edu / berkeley / sbp / meta / MetaGrammarBindings.java
index ecde372..667b6a6 100644 (file)
@@ -10,7 +10,9 @@ import java.lang.reflect.*;
 import java.io.*;
 
 /** The java classes typically used to represent a parsed grammar AST; each inner class is a type of AST node. */
-public class MetaGrammarBindings {
+public class MetaGrammarBindings extends AnnotationGrammarBindings {
+
+    public MetaGrammarBindings() { super(MetaGrammarBindings.class); }
 
     // FIXME ugly ugly ugly scary dangerous
     public static String prefix = "";
@@ -238,7 +240,7 @@ public class MetaGrammarBindings {
             if (dropAll)     ret = Sequence.drop(els, false);
             else {
                 Production prod = new Production(tag, (cnt==null?null:cnt.name), els, drops);
-                ret = cx.rm.tryResolveTag(prod);
+                ret = cx.rm.createSequence(prod);
                 if (ret == null) {
                     int idx = -1;
                     for(int i=0; i<els.length; i++)