Skip to content

Commit

Permalink
WIP: generalize functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mitghi committed Mar 11, 2023
1 parent 05124c4 commit 67daca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/grammar.pest
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ squashFn = { slash ~ squash }
pickFn = { slash ~ pick }
formats = { sharp ~ "formats" ~ whitespace ~ lparen ~ literal ~ ((",")* ~ whitespace ~ literal)+ ~ whitespace ~ rparen ~ whitespace ~ (as | asDeref)}
formatsFn = { slash ~ formats }
fnCall = { sharp ~ ident ~ whitespace ~ lparen ~ (literal ~ whitespace ~ ((",")* ~ whitespace ~ literal)*)? ~ whitespace ~ rparen ~ whitespace ~ as}
fnCall = { sharp ~ ident ~ whitespace ~ lparen ~ ((literal|sub_expression) ~ whitespace ~ ((",")* ~ whitespace ~ (literal|sub_expression))*)? ~ whitespace ~ rparen ~ whitespace ~ (as | asDeref)? }
filterStmt = { ( filter_elem ~ whitespace ~ cmp ~ whitespace ~ (float | truthy | literal | number ) ) }
filter = { sharp ~ "filter" ~ lparen ~ whitespace ~ ( filterStmt ~ whitespace ~ (logical_cmp ~ whitespace ~ filterStmt~ whitespace)* ) ~ whitespace ~ rparen }
filter_elem = { literal }
Expand Down

0 comments on commit 67daca7

Please sign in to comment.