X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=AST.icl;h=774e158ef5f9d774ad0dd355ce520243d009e6e7;hb=74b900cf6db033a51e177f7f85d835dae44217e5;hp=64366197d941175c378a1a7ba69e8f5c711bef9c;hpb=14e9a339d121ce18c420e4cb99f6bad86d1a5b45;p=cc1516.git diff --git a/AST.icl b/AST.icl index 6436619..774e158 100644 --- a/AST.icl +++ b/AST.icl @@ -110,6 +110,7 @@ instance print Expr where print (FunExpr _ id as fs) = printFunCall id as fs print (EmptyListExpr _) = ["[]"] print (TupleExpr _ (e1, e2)) = ["(":print e1] ++ [",":print e2] ++ [")"] + print (LambdaExpr _ args e) = ["\\":args] ++ ["->": print e] instance toString Expr where toString e = concat $ print e