pub fn parse(text: &str) -> Result<(Vec<Segment>, Vec<Directive>), Vec<String>>
Parse every top-level directive out of text. Returns the directives and the text segments between them, or every problem found.
text