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