Scheme, eh?
This commit is contained in:
parent
97602ade8d
commit
0122c4f249
|
|
@ -0,0 +1,14 @@
|
||||||
|
(define (string-replace str from to)
|
||||||
|
(string-intersperse (string-split str from) to)
|
||||||
|
)
|
||||||
|
|
||||||
|
(define (tokenize str)
|
||||||
|
(string-split
|
||||||
|
(string-replace
|
||||||
|
(string-replace str "]" " ] ")
|
||||||
|
"[" " [ "
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue