System.err.println("expanding...");
Tree t = r2.expand1();
- TestCase[] expanded = (TestCase[])((Demo.Reducer)t.head()).reduce(t);
+ TestCase[] expanded = (TestCase[])((Demo.Reducer)t.head()).reduce(t.children());
System.err.println("executing...");
for(TestCase tc : expanded) {
tc.execute();
});
}
public static class TestCaseMakerHelper extends MG {
- public static @tag("grammaro") @raw Object grammaro(Tree t) {
+ public static @tag("grammaro") @raw Object grammaro(Iterable<Tree> t) {
System.out.println("working on " + t);
- return Demo.make(t.child(0), "s", new ReflectiveMetaPlain());
+ return Demo.make(t.iterator().next(), "s", new ReflectiveMetaPlain());
}
//public static @tag("tca") Object tca(Object[] o) throws IOException {
//return new TestCase((String)o[0], (String[])o[1], (Union)o[2], false, false); }