diff options
author | Daniel <kingdread@gmx.de> | 2020-06-12 15:36:19 +0200 |
---|---|---|
committer | Daniel <kingdread@gmx.de> | 2020-06-12 15:36:19 +0200 |
commit | 6e52b5f2ac6154eca35355b320b7fb8bbc8f23ee (patch) | |
tree | 40603b4cb7e845c771f5800af1e0c5c6092620de | |
parent | 3d4ac61f9d8506ef82301772fe41c75d0f19e5a4 (diff) | |
download | raidgrep-6e52b5f2ac6154eca35355b320b7fb8bbc8f23ee.tar.gz raidgrep-6e52b5f2ac6154eca35355b320b7fb8bbc8f23ee.tar.bz2 raidgrep-6e52b5f2ac6154eca35355b320b7fb8bbc8f23ee.zip |
add a count(player) to count all players
-rw-r--r-- | src/fexpr/grammar.lalrpop | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fexpr/grammar.lalrpop b/src/fexpr/grammar.lalrpop index 9eef21a..700481c 100644 --- a/src/fexpr/grammar.lalrpop +++ b/src/fexpr/grammar.lalrpop @@ -220,6 +220,7 @@ DurationProducer: Box<dyn DurationProducer> = { CountProducer: Box<dyn CountProducer> = { <integer> => filters::values::constant(<>.parse().unwrap()), "count" "(" "player" ":" <PlayerFilter> ")" => filters::values::player_count(<>), + "count" "(" "player" ")" => filters::values::player_count(filters::constant(true)), } match { |