X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=src%2Fparse.icl;h=6c888acc3e51386c5b47983cf2d148ac949b6534;hb=50e06edf7e43bc11e3c5e38a949c5c8e7801a9eb;hp=c28fb4c58df52ad57313e88bde5ca8869101af58;hpb=8c3da7a503f87783e3614254649ed8c04eb0d519;p=cc1516.git diff --git a/src/parse.icl b/src/parse.icl index c28fb4c..6c888ac 100644 --- a/src/parse.icl +++ b/src/parse.icl @@ -222,7 +222,7 @@ printStatements [s:ss] i = (case s of ) ++ printStatements ss i where printCodeBlock :: [Stmt] Int -> [String] - printCodeBlock [] _ = ["{}"] + printCodeBlock [] _ = ["{}\n"] printCodeBlock [x] i = ["\n":printStatements [x] (i+1)] printCodeBlock x i = ["{\n":printStatements x (i+1)] ++ indent i ["}\n"]