Process the inputs and generate the events.
(defdefparse-fn args call ctx state) → (mv erp even state)
Function:
(defun defdefparse-fn (args call ctx state) (declare (xargs :stobjs (state))) (declare (xargs :guard (and (true-listp args) (pseudo-event-formp call) (ctxp ctx)))) (let ((__function__ 'defdefparse-fn)) (declare (ignorable __function__)) (b* (((when (defdefparse-table-lookup call (w state))) (value '(value-triple :redundant))) ((er (list name pkg-wit grammar prefix) :iferr '(_)) (defdefparse-process-inputs args ctx state)) (event (defdefparse-gen-everything name pkg-wit grammar prefix call))) (value event))))
Theorem:
(defthm pseudo-event-formp-of-defdefparse-fn.even (b* (((mv acl2::?erp ?even acl2::?state) (defdefparse-fn args call ctx state))) (pseudo-event-formp even)) :rule-classes :rewrite)