X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=spl.icl;h=2b458e47ca6642cdba3099f917fe6eee9874e108;hb=455c31ab5f8222a5a8f273f7a7703e7485690438;hp=da8fa316ce66730ea3e8103e02567a734d503735;hpb=e117090bd4eac114541e34d85463d271eded0865;p=cc1516.git diff --git a/spl.icl b/spl.icl index da8fa31..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