From: Tim Vaughan Date: Sun, 11 Jun 2017 10:49:47 +0000 (+1200) Subject: Disabled existing macro expansion. X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=scheme.forth.jl.git;a=commitdiff_plain;h=ace5f5fbaf83906bb9f2b8293a6a366757eac615 Disabled existing macro expansion. --- diff --git a/src/scheme.4th b/src/scheme.4th index d0bca19..bb65be2 100644 --- a/src/scheme.4th +++ b/src/scheme.4th @@ -1749,30 +1749,14 @@ hide env 2over 2over ( env exp env exp ) operator ( env exp env opname ) - 2dup lookup-macro nil? false = if - \ Macro function evaluation + 2swap eval ( env exp proc ) - ( env exp env opname mproc ) - 2swap 2drop -2rot 2drop cdr ( env mproc body ) + -2rot ( proc env exp ) + operands 2swap ( proc operands env ) + list-of-vals ( proc argvals ) - macro-expand - - 2swap - ['] eval goto-deferred - else - \ Regular function application - - 2drop ( env exp env opname ) - - 2swap eval ( env exp proc ) - - -2rot ( proc env exp ) - operands 2swap ( proc operands env ) - list-of-vals ( proc argvals ) - - apply - exit - then + apply + exit then except-message: ." tried to evaluate object with unknown type." recoverable-exception throw @@ -2014,7 +1998,7 @@ variable gc-stack-depth include scheme-primitives.4th - s" scheme-library.scm" load 2drop +\ s" scheme-library.scm" load 2drop \ }}} @@ -2045,7 +2029,7 @@ variable gc-stack-depth enable-gc \ Display welcome message - welcome-symbol nil cons global-env obj@ eval 2drop + \ welcome-symbol nil cons global-env obj@ eval 2drop begin ['] repl-body catch