From d6c23652adf6bf2e9494cdedfed853c288b16f3f Mon Sep 17 00:00:00 2001 From: Luke Lau Date: Sun, 28 Jul 2019 00:04:36 +0100 Subject: [PATCH] Fill in missing builtin lambda info --- codegen.scm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/codegen.scm b/codegen.scm index 517cc11..4e05bcf 100644 --- a/codegen.scm +++ b/codegen.scm @@ -358,15 +358,21 @@ ('+ "_add") ('- "_sub") ('* "_mul") + ('! "_not") + ('= "_eq") ('bool->int "_bool2int") - (else (error #f "fill this out")))) + ('print "_print") + (else (error #f "don't know this builtin")))) (define (builtin-args e) (case e ('+ '(x y)) ('- '(x y)) ('* '(x y)) + ('! '(x)) + ('= '(x y)) ('bool->int '(x)) - (else (error #f "fill this out")))) + ('print '(x)) + (else (error #f "don't know this builtin")))) (define (add-builtin-lambda e) (let* [(label (builtin-name e)) -- 2.30.2