remove unused code from CommandLine
[sbp.git] / src / edu / berkeley / sbp / misc / CommandLine.java
index ca9086d..943d410 100644 (file)
@@ -9,7 +9,7 @@ import edu.berkeley.sbp.chr.*;
 import java.io.*;
 
 public class CommandLine {
-
+    /*
     public static void main(String[] argv) throws Throwable {
         String grammarFile = argv[0];
         String targetFile = argv[1];
@@ -19,13 +19,11 @@ public class CommandLine {
             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();
@@ -38,6 +36,5 @@ public class CommandLine {
             System.exit(-1);
         }
     }
-
-
+    */
 }