From 24600605195f54d7b691e929d4de55ea82b2ec48 Mon Sep 17 00:00:00 2001 From: Mike Taghavi Date: Sat, 11 Mar 2023 12:40:47 +0100 Subject: [PATCH] Add comment --- src/parser.rs | 3 +++ 1 file changed, 3 insertions(+) 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() {