X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;ds=sidebyside;f=spl.icl;h=2b458e47ca6642cdba3099f917fe6eee9874e108;hb=455c31ab5f8222a5a8f273f7a7703e7485690438;hp=0a3f1970ec14d1210c54bab4957ee421408badbb;hpb=dd9529f0ce7864e2bf6df4e4973bd2af068985a0;p=cc1516.git diff --git a/spl.icl b/spl.icl index 0a3f197..2b458e4 100644 --- a/spl.icl +++ b/spl.icl @@ -59,12 +59,12 @@ Start w # lexOut = lexer cs # stdin = if (not args.lex) stdin (case lexOut of (Right toks) = - stdin <<< "---LEXER\n" <<< printTokens toks <<< "---LEXER\n" + stdin <<< "//LEXER\n" <<< printTokens toks <<< "//LEXER\n" _ = stdin) # parseOut = parser lexOut # stdin = if (not args.parse) stdin (case parser lexOut of (Right ast) = - stdin <<< "---PARSER\n" <<< toString ast <<< "---PARSER\n" + stdin <<< "//PARSER\n" <<< toString ast <<< "//PARSER\n" (Left parse) = stdin <<< toString parse) = snd $ fclose stdin w where @@ -82,6 +82,7 @@ parseArgs w version=False, lex=False, parse=True, + selftest=False, fp=Nothing, help=False}, w) where