From 4afbd78a896975ece682b75291c919251daa0741 Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Wed, 13 Apr 2016 18:28:48 +0200 Subject: [PATCH] add printing for ast --- spl.icl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.20.1