From b6bce72b94c2aab89c8477a0d882d095da01552f Mon Sep 17 00:00:00 2001 From: Erin Date: Mon, 7 Jun 2021 09:17:30 +0200 Subject: [PATCH] Added logical operators --- src/parser.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/parser.rs b/src/parser.rs index 7f66de1..c3c2f2c 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -118,7 +118,9 @@ impl<'source> Parser<'source> { | Token::EqualEqual | Token::NotEqual | Token::LessThan - | Token::GreaterThan => Ok(Expr::new( + | Token::GreaterThan + | Token::And + | Token::Or => Ok(Expr::new( self.op_flow( match BinOpKind::from_token(token) { Ok(op) => op,