Valid-absdeclor-option
Validate an optional abstract declarator.
- Signature
(valid-absdeclor-option absdeclor? type table ienv)
→
(mv erp new-absdeclor? new-type return-types new-table)
- Arguments
- absdeclor? — Guard (absdeclor-optionp absdeclor?).
- type — Guard (typep type).
- table — Guard (valid-tablep table).
- ienv — Guard (ienvp ienv).
- Returns
- erp — Type (maybe-msgp erp).
- new-absdeclor? — Type (absdeclor-optionp new-absdeclor?).
- new-type — Type (typep new-type).
- return-types — Type (type-setp return-types).
- new-table — Type (valid-tablep new-table).
If there is no abstract declarator,
we return the type and validation table unchanged.
Otherwise, we validate the abstract declarator,
using a separate validation function.