mod error;
mod grammar;
mod parser;
pub use error::ParseError;
pub use parser::ParsedRuleSet;
pub fn parse(input: &str) -> Result<ParsedRuleSet, ParseError> {
use winnow::Parser;
grammar::parse_ruleset
.parse(input)
.map_err(|e| ParseError::new(e.to_string()))
}