diff --git a/module/mes/repl.mes b/module/mes/repl.mes index 206dbe84..fef9a0e9 100644 --- a/module/mes/repl.mes +++ b/module/mes/repl.mes @@ -165,15 +165,15 @@ along with Mes. If not, see . (loop (mes-load-module-env (cadr sexp) a)) (let ((e (if (and (pair? sexp) (eq? (car sexp) (string->symbol "unquote"))) (meta (cadr sexp) a) - (core:eval-expand sexp a)))) + (core:eval sexp a)))) (if (eq? e *unspecified*) (loop a) - (let ((id (string->symbol (string-append "$" (number->string count))))) - (set! count (+ count 1)) - (display id) - (display " = ") - (write e) - (newline) - (loop (acons id e a))))))))) + (let ((id (string->symbol (string-append "$" (number->string count))))) + (set! count (+ count 1)) + (display id) + (display " = ") + (write e) + (newline) + (loop (acons id e a))))))))) (lambda (key . args) (if (defined? 'with-output-to-string) (simple-format (current-error-port) "exception:~a:~a\n" key args) diff --git a/scaffold/mini-mes.c b/scaffold/mini-mes.c index 88b70c4a..1a9e2abf 100644 --- a/scaffold/mini-mes.c +++ b/scaffold/mini-mes.c @@ -143,7 +143,7 @@ struct scm scm_vm_evlis2 = {TSPECIAL, "*vm-evlis2*",0}; struct scm scm_vm_evlis3 = {TSPECIAL, "*vm-evlis3*",0}; struct scm scm_vm_apply = {TSPECIAL, "core:apply",0}; struct scm scm_vm_apply2 = {TSPECIAL, "*vm-apply2*",0}; -struct scm scm_vm_eval = {TSPECIAL, "core:eval",0}; +struct scm scm_vm_eval = {TSPECIAL, "core:eval-sexp",0}; struct scm scm_vm_eval_pmatch_car = {TSPECIAL, "*vm-eval-pmatch-car*",0}; struct scm scm_vm_eval_pmatch_cdr = {TSPECIAL, "*vm-eval-pmatch-cdr*",0}; @@ -163,7 +163,7 @@ struct scm scm_vm_begin_expand_primitive_load = {TSPECIAL, "*vm:core:begin-expan struct scm scm_vm_begin_primitive_load = {TSPECIAL, "*vm:core:begin-primitive-load*",0}; struct scm scm_vm_macro_expand_car = {TSPECIAL, "*vm:core:macro-expand-car*",0}; struct scm scm_vm_macro_expand_cdr = {TSPECIAL, "*vm:macro-expand-cdr*",0}; -struct scm scm_vm_begin_expand = {TSPECIAL, "core:eval-expand",0}; +struct scm scm_vm_begin_expand = {TSPECIAL, "core:eval",0}; struct scm scm_vm_begin_expand_eval = {TSPECIAL, "*vm:begin-expand-eval*",0}; struct scm scm_vm_begin_expand_macro = {TSPECIAL, "*vm:begin-expand-macro*",0}; struct scm scm_vm_begin = {TSPECIAL, "*vm-begin*",0}; diff --git a/src/mes.c b/src/mes.c index 4f787929..4cfa27c9 100644 --- a/src/mes.c +++ b/src/mes.c @@ -185,7 +185,7 @@ struct scm scm_vm_evlis2 = {TSPECIAL, "*vm-evlis2*",0}; struct scm scm_vm_evlis3 = {TSPECIAL, "*vm-evlis3*",0}; struct scm scm_vm_apply = {TSPECIAL, "core:apply",0}; struct scm scm_vm_apply2 = {TSPECIAL, "*vm-apply2*",0}; -struct scm scm_vm_eval = {TSPECIAL, "core:eval",0}; +struct scm scm_vm_eval = {TSPECIAL, "core:eval-expanded",0}; struct scm scm_vm_eval_pmatch_car = {TSPECIAL, "*vm-eval-pmatch-car*",0}; struct scm scm_vm_eval_pmatch_cdr = {TSPECIAL, "*vm-eval-pmatch-cdr*",0}; @@ -205,7 +205,7 @@ struct scm scm_vm_begin_expand_primitive_load = {TSPECIAL, "*vm:core:begin-expan struct scm scm_vm_begin_primitive_load = {TSPECIAL, "*vm:core:begin-primitive-load*",0}; struct scm scm_vm_macro_expand_car = {TSPECIAL, "*vm:core:macro-expand-car*",0}; struct scm scm_vm_macro_expand_cdr = {TSPECIAL, "*vm:macro-expand-cdr*",0}; -struct scm scm_vm_begin_expand = {TSPECIAL, "core:eval-expand",0}; +struct scm scm_vm_begin_expand = {TSPECIAL, "core:eval",0}; struct scm scm_vm_begin_expand_eval = {TSPECIAL, "*vm:begin-expand-eval*",0}; struct scm scm_vm_begin_expand_macro = {TSPECIAL, "*vm:begin-expand-macro*",0}; struct scm scm_vm_begin = {TSPECIAL, "*vm-begin*",0};