Skip to content

Commit

Permalink
tmmp
Browse files Browse the repository at this point in the history
  • Loading branch information
inconvergent committed May 8, 2024
1 parent 9d438f5 commit f0c4c73
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/pre-qry.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@

(defun pre/scan-clauses (qq &optional (ctx "pre-compile") ign)
(declare (list qq))
(let ((isect (intersection
(mapcar (λ (k) (kw (ssym? k))) qq)
(set-difference *operators* ign)
:test #'equal)))
(when isect (error "~a: unexpected bare operator(s) ~a~%in: ~a." ctx isect qq)))
(loop for q in qq collect (pre/scan-clause q)))
(let ((isect (intersection (mapcar (λ (k) (kw (ssym? k))) qq)
(set-difference *operators* ign)
:test #'equal)))
(when isect (error "~a: unexpected bare operator(s) ~a~%in: ~a."
ctx isect qq)))
(loop for q in qq collect (print (pre/scan-clause q))))

(defun pre/|| (qq) (unless qq (warn "||: missing args.")) ; pipe
(loop for q in (pre/scan-clauses qq '#:pipe '(:@)) collect
Expand Down

0 comments on commit f0c4c73

Please sign in to comment.