From 6e52b5f2ac6154eca35355b320b7fb8bbc8f23ee Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 12 Jun 2020 15:36:19 +0200 Subject: add a count(player) to count all players --- src/fexpr/grammar.lalrpop | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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 = { CountProducer: Box = { => filters::values::constant(<>.parse().unwrap()), "count" "(" "player" ":" ")" => filters::values::player_count(<>), + "count" "(" "player" ")" => filters::values::player_count(filters::constant(true)), } match { -- cgit v1.2.3