diff --git a/module/mes/guile.scm b/module/mes/guile.scm index 614aae12..d6518c85 100644 --- a/module/mes/guile.scm +++ b/module/mes/guile.scm @@ -34,11 +34,13 @@ append2 core:apply + core:car core:display core:display-error core:display-port core:exit core:macro-expand + core:make-cell core:write core:write-error core:write-port @@ -62,6 +64,7 @@ (define core:write-port write) (define core:macro-expand identity) (define (core:apply f a . m) (apply f a)) + (define (core:car f a . m) (apply f a)) (define append2 append) (define guile:keyword? keyword?) @@ -83,8 +86,11 @@ ((guile:number? x) ) ((guile:pair? x) ) ((guile:string? x) ) - ((guile:symbol? x) )))) - + ((guile:symbol? x) ))) + (define (core:car x) + (cond ((guile:string? x) (string->list x)))) + (define (core:make-cell type car cdr) + (cond ((eq? type ) (list->string car))))) (mes)) (cond-expand