pub(crate) fn sections<'a>(input: &mut Input<'a>) -> PResult<'a, Vec<Section>>Expand description
Parses all %SECTION% blocks from the given input into a list of Sections.
This is the top-level parser used by the higher-level file constructors.
ยงErrors
Returns an error if:
- any section header is missing or malformed,
- a section value list fails to parse,
- or the overall structure of the file is inconsistent.