+ public static Union make(Tree t, String s) {
+ ReflectiveMeta rm = new ReflectiveMeta();
+ Reducer red = (Reducer)t.head();
+ MG.Grammar g = (MG.Grammar)red.reduce(t);
+ Context cx = new Context(g,rm);
+ Union u = null;
+ for(MG.NonTerminal nt : g.nonterminals) {
+ Union el = (Union)cx.get(nt.name);
+ StringBuffer st = new StringBuffer();
+ el.toString(st);
+ System.err.println(st);
+ if (nt.name.equals(s)) u = el;
+ }
+ return u;
+ }
+