Parse a compound statement.
(parse-compound-statement open-curly-span parstate) → (mv erp cstmt span new-parstate)
This is called after the opening curly brace has already been parsed. The span of that opening curly brace is passed as input, so that this function can return a span for the whole compound statement.
First, we parse zero or more label declarations. Then, if there is a closing curly brace, we return a compound statement with no block items (and with any label declarations we parsed). Otherwise, we parse one or more block items, and then the closing curly brace.
Note that label declarations are accepted
only if