diff options
author | colin <colin@cicadas.surf> | 2023-03-11 12:10:39 -0800 |
---|---|---|
committer | colin <colin@cicadas.surf> | 2023-03-11 12:10:39 -0800 |
commit | 906b01d476d882ab00f56fc220945b24a454083f (patch) | |
tree | eecc87e25faa368cf5976f109aba10eec546102f | |
parent | 5230a69bc5f2d0fcea726ede70512263823874ae (diff) |
Modify: >> checks failure check syntax
-rw-r--r-- | hyperquirks.lisp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hyperquirks.lisp b/hyperquirks.lisp index 27051c5..d64ce08 100644 --- a/hyperquirks.lisp +++ b/hyperquirks.lisp @@ -203,6 +203,10 @@ single pipe form." () "Invalid pipe form: ~s" (find-if-not #'pipe-form-p pipe-forms)) + (assert (loop :for (f1 f2) :on pipe-forms + :always (or (not (eql :? f1)) (and f2 (not (eql :? f2))))) + () + "Failure checks :? must always be followed by a valid form.") (list 'block block (reduce #'folder (escape-early-transform pipe-forms) :initial-value initform))))) |