Parse-compound-literal
Parse a compound literal.
- Signature
(parse-compound-literal tyname first-span parstate)
→
(mv erp expr span new-parstate)
- Arguments
- tyname — Guard (tynamep tyname).
- first-span — Guard (spanp first-span).
- parstate — Guard (parstatep parstate).
- Returns
- expr — Type (exprp expr).
- span — Type (spanp span).
- new-parstate — Type (parstatep new-parstate), given (parstatep parstate).
This is called after parsing the parenthesized type name.
So we start by parsing an open curly brace,
a list of initializers,
and a closed curly brace.