X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=spl.icl;h=291b0bdd369f4c2cdeebcae3ea94229c990b8f4e;hb=f490bc3083cc290680499d4c12be9b732b94fd82;hp=2a4fb97e0b4cdaf0e6e712e31fad5e233506aaab;hpb=c13e6ac6caa1b0d3578caf9310303920d47cf85f;p=cc1516.git diff --git a/spl.icl b/spl.icl index 2a4fb97..291b0bd 100644 --- a/spl.icl +++ b/spl.icl @@ -51,7 +51,8 @@ Start w <<< " --help Show this help\n" <<< " --version Show the version\n" <<< " --[no-]lex Lexer output(default: disabled)\n" - <<< " --[no-]parse Parser output(default: enabled)\n" + <<< " --[no-]parse Parser output(default: disabled)\n" + <<< " --[no-]sem Semantic analysis output(default: enabled)\n" = snd $ fclose stdin w # (contents, stdin, w) = readFileOrStdin stdin args.fp w = case contents of @@ -71,7 +72,7 @@ Start w (Right (semOut, gamma)) # stdin = if (not args.sem) stdin ( stdin <<< "//SEM\n" <<< toString gamma <<< "//SEM\n") - = snd $ fclose stdin w + = snd $ fclose (stdin <<< "\n") w where printTokens :: [Token] -> String printTokens ts = concat $ flatten $ map pt ts