Commit fa4d3f08 authored by Juergen Nickelsen's avatar Juergen Nickelsen
Browse files

added qq.lisp

parent 35213d4e
Loading
Loading
Loading
Loading

l/qq.lisp

0 → 100644
+11 −0
Original line number Diff line number Diff line

(defmacro while (cond &list bodyforms)
  `(loop while (,cond) do ,@bodyforms))

(let ((l '(3 4 5 6))
      (a 0))
  (let ((cond 'l)
        (bodyforms '((setq a (+ (car l))) (setq l (cdr l)))))
    (macro-expand* 
     '(quasiquote (loop while (comma cond) do (comma-atsign bodyforms))))))