Fixed bug in MCE. Now working!
authorTim Vaughan <tgvaughan@gmail.com>
Mon, 1 May 2017 06:19:47 +0000 (18:19 +1200)
committerTim Vaughan <tgvaughan@gmail.com>
Mon, 1 May 2017 06:19:47 +0000 (18:19 +1200)
examples/metacirc.scm

index f28367b..170adaa 100644 (file)
     env)
   'ok)
 
+(define (eval-definition exp env)
+  (define-variable! 
+    (definition-variable exp)
+    (eval (definition-value exp) env)
+    env)
+  'ok)
+
 (define (self-evaluating? exp)
   (cond ((number? exp) true)
         ((string? exp) true)