Union meta = MetaGrammar.make(res, "s");
System.err.println("parsing " + s[1]);
- SequenceInputStream sis = new SequenceInputStream(new FileInputStream(s[0]), new FileInputStream(s[1]));
- res = new CharParser(meta).parse(sis).expand1();
+ //SequenceInputStream sis = new SequenceInputStream(new FileInputStream(s[0]), new FileInputStream(s[1]));
+ res = new CharParser(meta).parse(new FileInputStream(s[1])).expand1();
Union testcasegrammar = MetaGrammar.make(res, "ts", new TestCaseMaker());
if (testcasegrammar==null) return;
System.err.println("expanding...");
Tree t = r2.expand1();
- TestCase[] expanded = (TestCase[])((Functor)t.head()).invoke(t.children());
+ TestCase[] expanded = (TestCase[])((Functor)t.head()).invoke(t);
System.err.println("executing...");
for(TestCase tc : expanded) {
tc.execute();