Skip to content

Commit

Permalink
fix quasiquotation of dotted lists
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Piumarta authored and Ian Piumarta committed May 18, 2011
1 parent 2f9e4f6 commit a14a9bf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions boot.l
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@
(if (pair? l)
(let ((obj (car l)))
(if (and (pair? obj) (= (car obj) 'unquote-splicing))
(list 'concat-list (cadr obj) (qq-list (cdr l)))
(list 'cons (qq-object obj) (qq-list (cdr l)))))
(if (cdr l)
(list 'concat-list (cadr obj) (qq-list (cdr l)))
(cadr obj))
(list 'cons (qq-object obj) (qq-list (cdr l)))))
(list 'quote l))))
(set qq-element (lambda (l)
(let ((head (car l)))
Expand Down

0 comments on commit a14a9bf

Please sign in to comment.