aboutsummaryrefslogtreecommitdiff
path: root/src/fexpr/grammar.lalrpop
AgeCommit message (Collapse)Author
2020-04-25use free functions instead of Filter::newDaniel
Having a ::new on each of the filter types was a bit weird, especially because we returned Box<dyn ...> instead of Self (and clippy rightfully complained). With this patch, we now have a bunch of normal functions, and we don't show to the outside how a filter is actually implemented (or what struct is behind it).
2020-04-21grammar: fix precendence rulesDaniel
If we don't allow the higher-tier on the left side, we cannot chain multiple or/and on the same level. Since or is associative, we shouldn't expect the user to write (... or (... or ...)) and instead provide the flattened version as well.
2020-04-21add "or" and "and" to the list of tokensDaniel
Otherwise they'd get tokenized as word and we couldn't build conjunctions/disjunctions.
2020-04-21better error outputsDaniel
2020-04-20Add -player as a shortcut to search player namesDaniel
2020-04-18first version of the new filter pipelineDaniel