diff --git a/src/parser.rs b/src/parser.rs index 0edb1d2..b210cf8 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -14,6 +14,9 @@ use crate::*; #[grammar = "./grammar.pest"] pub struct ExpressionParser; +/// parse parses the jetro expression, builds the filter along with +/// abstract syntax tree. It returns an error containing details about +/// cause of parser failure. pub(crate) fn parse<'a>(input: &'a str) -> Result, pest::error::Error> { let pairs = ExpressionParser::parse(Rule::expression, input); if pairs.is_err() {