(expand-defparsers forms) → *
Function:
(defun expand-defparsers (forms) (declare (xargs :guard t)) (let ((__function__ 'expand-defparsers)) (declare (ignorable __function__)) (b* (((when (atom forms)) nil) (form1 (car forms)) ((when (eq form1 '///)) forms) ((when (and (keywordp form1) (consp (cdr forms)))) (list* form1 (second forms) (expand-defparsers (rest-n 2 forms)))) ((unless (and (< 3 (len form1)) (equal (first form1) 'defparser))) (raise "Expected defparser forms, but found ~x0." form1)) (name1 (second form1)) (formals1 (third form1)) (args1 (rest-n 3 form1))) (cons (defparser-fn name1 formals1 args1 nil) (expand-defparsers (cdr forms))))))