From: Mart Lubbers Date: Wed, 13 Apr 2016 16:28:48 +0000 (+0200) Subject: add printing for ast X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;ds=sidebyside;h=4afbd78a896975ece682b75291c919251daa0741;p=cc1516.git add printing for ast --- diff --git a/spl.icl b/spl.icl index 291b0bd..c42412c 100644 --- a/spl.icl +++ b/spl.icl @@ -70,8 +70,9 @@ Start w = case sem parseOut of (Left e) = snd $ fclose (stdin <<< join "\n" (map toString e)) w (Right (semOut, gamma)) - # stdin = if (not args.sem) stdin ( - stdin <<< "//SEM\n" <<< toString gamma <<< "//SEM\n") + # stdin = if (not args.sem) stdin (stdin + <<< "//SEM G\n" <<< toString gamma <<< "//SEM A\n" + <<< "//SEM A\n" <<< toString semOut <<< "//SEM A\n") = snd $ fclose (stdin <<< "\n") w where printTokens :: [Token] -> String