alpm_mtree::parser

Function mtree

Source
pub fn mtree<'s>(input: &mut &'s str) -> ModalResult<Vec<Statement<'s>>>
Expand description

Parse a given .MTREE file.

Empty lines and comment lines are returned as Statement::Ignored. This is to provide a proper line-based representation of the file, so we can later on provide proper context in error messages during the interpretation step.

ยงErrors

  • Error::ParseError if a malformed MTREE file is encountered.