- Union meta = Grammar.create(res, "s",
- new Grammar.Bindings() {
- /*
- public Sequence createSequence(Production p) {
- Sequence ret = super.createSequence(p);
- if (ret != null) return ret;
- return Sequence.create(p.nonTerminal, p.elements, p.drops, false);
- }
- */
- });
- Tree ret = new CharParser(meta).parse(new FileInputStream(targetFile)).expand1();
+ Union meta = Grammar.create(res, "s");
+ Input input = new Tib(new FileInputStream(targetFile));
+ Tree ret = new CharParser(meta).parse(input).expand1();