diff options
Diffstat (limited to 'src/fexpr/grammar.lalrpop')
-rw-r--r-- | src/fexpr/grammar.lalrpop | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fexpr/grammar.lalrpop b/src/fexpr/grammar.lalrpop index f559ff1..caaaf7f 100644 --- a/src/fexpr/grammar.lalrpop +++ b/src/fexpr/grammar.lalrpop @@ -28,18 +28,18 @@ PlayerFilter: Box<dyn filters::player::PlayerFilter> = { } Disjunction<T>: T = { - <a:Conjunction<T>> "or" <b:Conjunction<T>> => a | b, + <a:Disjunction<T>> "or" <b:Conjunction<T>> => a | b, Conjunction<T>, } Conjunction<T>: T = { - <a:Negation<T>> "and"? <b:Negation<T>> => a & b, + <a:Conjunction<T>> "and"? <b:Negation<T>> => a & b, Negation<T>, } Negation<T>: T = { - "not" <T> => ! <>, - "!" <T> => ! <>, + "not" <Negation<T>> => ! <>, + "!" <Negation<T>> => ! <>, T, } |