Parse-struct-declaration
Parse a structure declaration.
- Signature
(parse-struct-declaration parstate)
→
(mv erp structdecl span new-parstate)
- Arguments
- parstate — Guard (parstatep parstate).
- Returns
- structdecl — Type (structdeclp structdecl).
- span — Type (spanp span).
- new-parstate — Type (parstatep new-parstate), given (parstatep parstate).
A structure declaration is either an assert declaration,
which is easily recognized by the starting _Static_assert keyword,
or a list of one or more specifiers and qualifiers
optionally followed by a list of one or more structure declarators.
If GCC extensions are supported,
a non-assert structure declaration
may start with the __extension__ keyword,
and may end (before the semicolon) with attribute specifiers.