Skip to main content

parse

Function parse 

Source
pub fn parse(path: &str, text: &str) -> Result<Vec<Rule>, Vec<Error>>
Expand description

Read every rule in one file.

ยงErrors

Returns every error found rather than the first. After a malformed rule the reader skips to the next (rule, so one missing parenthesis does not turn the rest of the file into noise.