Use `,' to denote list

* undone/main.scm (add): When encountering a value that starts with
  `,', assume that it should be turned into a list.
This commit is contained in:
Tom Willemsen 2012-08-17 01:45:20 +02:00
parent 206294033b
commit 3a132e8040

View file

@ -127,9 +127,14 @@
(append (append
`((content . ,(read-delimited ""))) `((content . ,(read-delimited "")))
(map (lambda (arg) (map (lambda (arg)
(let ((pair (string-split arg #\=))) (let* ((pair (string-split arg #\=))
(cons (string->symbol (car pair)) (var (string->symbol (car pair)))
(cadr pair)))) (val (cadr pair)))
(if (char=? (string-ref val 0) #\,)
(set! val (string-split
(substring val 1) #\,)))
(cons var val)))
args)))))) args))))))
(define-view default (define-view default