From 56cd6d58ca806cb1567fe1dcd9f1e54436d1db6e Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Thu, 9 Aug 2018 09:44:54 +0200 Subject: [PATCH] check: Fix 4f-string-split.scm for Guile. * module/mes/guile.scm (core:car, core:make-cell): New function. Fixes scaffold/boot/4f-string-split.scm. --- module/mes/guile.scm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 -- 2.28.0