Merge branch 'master' of github.com:dopefishh/cc1516
[cc1516.git] / spl.icl
diff --git a/spl.icl b/spl.icl
index 2b458e4..f398f90 100644 (file)
--- a/spl.icl
+++ b/spl.icl
@@ -24,7 +24,6 @@ from yard import :: Error, instance toString Error
        program :: String,
        lex :: Bool,
        parse :: Bool,
-       selftest :: Bool,
        fp :: Maybe String,
        help :: Bool}
 
@@ -50,7 +49,6 @@ Start w
                <<< "  --version          Show the version\n"
                <<< "  --[no-]lex         Lexer output(default: disabled)\n"
                <<< "  --[no-]parse       Parser output(default: enabled)\n"
-               <<< "  --[no-]selftest    Feed pprint parse back(default: disabled)\n"
        = snd $ fclose stdin w
 # (contents, stdin, w) = readFileOrStdin stdin args.fp w
 = case contents of
@@ -82,7 +80,6 @@ parseArgs w
        version=False,
        lex=False,
        parse=True,
-       selftest=False,
        fp=Nothing,
        help=False}, w)
 where
@@ -94,8 +91,6 @@ where
        pa ["--no-lex":r] o = pa r {o & lex=False}
        pa ["--parse":r] o = pa r {o & parse=True}
        pa ["--no-parse":r] o = pa r {o & parse=False}
-       pa ["--selftest":r] o = pa r {o & selftest=True}
-       pa ["--no-selftest":r] o = pa r {o & selftest=False}
        pa [x:r] o = pa r {o & fp=Just x}
 
 readFileOrStdin :: *File (Maybe String) *World -> *(Either String [Char], *File, *World)