add printing for ast
authorMart Lubbers <mart@martlubbers.net>
Wed, 13 Apr 2016 16:28:48 +0000 (18:28 +0200)
committerMart Lubbers <mart@martlubbers.net>
Wed, 13 Apr 2016 16:28:48 +0000 (18:28 +0200)
spl.icl

diff --git a/spl.icl b/spl.icl
index 291b0bd..c42412c 100644 (file)
--- 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