X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=spl.icl;h=cf3d5f3d5a7d53f4fa82ce1ef041c39634953334;hb=51921a9587d60b6411610845f56d62ebd73f80cb;hp=80049330e52a8259bdf28f2864e94ace7d5438cf;hpb=de448d981d7f4b3d78dc09d9eea4c492ec44bc76;p=cc1516.git diff --git a/spl.icl b/spl.icl index 8004933..cf3d5f3 100644 --- a/spl.icl +++ b/spl.icl @@ -69,9 +69,9 @@ Start w stdin <<< "//PARSER\n" <<< toString parseOut <<< "//PARSER\n") = case sem parseOut of (Left e) = snd $ fclose (stdin <<< join "\n" (map toString e)) w - (Right constraints) + (Right ast) # stdin = if (not args.sem) stdin (stdin - <<< "//SEM G\n" <<< printConstraints constraints <<< "//SEMA\n") + <<< "//SEM G\n" <<< toString ast <<< "//SEMA\n") = snd $ fclose (stdin <<< "\n") w where printConstraints :: Constraints -> String