import java.io.*;
public class CommandLine {
-
+ /*
public static void main(String[] argv) throws Throwable {
String grammarFile = argv[0];
String targetFile = argv[1];
Tree<String> res = new CharParser(MetaGrammar.newInstance()).parse(new FileInputStream(grammarFile)).expand1();
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);
- }
- */
+ //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);
+ //}
});
CharInput input = new CharInput(new FileInputStream(targetFile), "", true);
Tree ret = new CharParser(meta).parse(input).expand1();
System.exit(-1);
}
}
-
-
+ */
}