Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mitghi committed Mar 11, 2023
1 parent b45da47 commit 2460060
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Vec<Filter>, pest::error::Error<Rule>> {
let pairs = ExpressionParser::parse(Rule::expression, input);
if pairs.is_err() {
Expand Down

0 comments on commit 2460060

Please sign in to comment.