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.
This commit is contained in:
parent
fa3cd8b9a5
commit
56cd6d58ca
|
@ -34,11 +34,13 @@
|
||||||
|
|
||||||
append2
|
append2
|
||||||
core:apply
|
core:apply
|
||||||
|
core:car
|
||||||
core:display
|
core:display
|
||||||
core:display-error
|
core:display-error
|
||||||
core:display-port
|
core:display-port
|
||||||
core:exit
|
core:exit
|
||||||
core:macro-expand
|
core:macro-expand
|
||||||
|
core:make-cell
|
||||||
core:write
|
core:write
|
||||||
core:write-error
|
core:write-error
|
||||||
core:write-port
|
core:write-port
|
||||||
|
@ -62,6 +64,7 @@
|
||||||
(define core:write-port write)
|
(define core:write-port write)
|
||||||
(define core:macro-expand identity)
|
(define core:macro-expand identity)
|
||||||
(define (core:apply f a . m) (apply f a))
|
(define (core:apply f a . m) (apply f a))
|
||||||
|
(define (core:car f a . m) (apply f a))
|
||||||
(define append2 append)
|
(define append2 append)
|
||||||
|
|
||||||
(define guile:keyword? keyword?)
|
(define guile:keyword? keyword?)
|
||||||
|
@ -83,8 +86,11 @@
|
||||||
((guile:number? x) <cell:number>)
|
((guile:number? x) <cell:number>)
|
||||||
((guile:pair? x) <cell:pair>)
|
((guile:pair? x) <cell:pair>)
|
||||||
((guile:string? x) <cell:string>)
|
((guile:string? x) <cell:string>)
|
||||||
((guile:symbol? x) <cell:symbol>))))
|
((guile:symbol? x) <cell:symbol>)))
|
||||||
|
(define (core:car x)
|
||||||
|
(cond ((guile:string? x) (string->list x))))
|
||||||
|
(define (core:make-cell type car cdr)
|
||||||
|
(cond ((eq? type <cell:string>) (list->string car)))))
|
||||||
(mes))
|
(mes))
|
||||||
|
|
||||||
(cond-expand
|
(cond-expand
|
||||||
|
|
Loading…
Reference in a new issue