Added logical operators

This commit is contained in:
Erin 2021-06-07 09:17:30 +02:00 committed by ondra05
parent 927ad5e955
commit f0cd6cd0ad

View file

@ -118,7 +118,9 @@ impl<'source> Parser<'source> {
| Token::EqualEqual | Token::EqualEqual
| Token::NotEqual | Token::NotEqual
| Token::LessThan | Token::LessThan
| Token::GreaterThan => Ok(Expr::new( | Token::GreaterThan
| Token::And
| Token::Or => Ok(Expr::new(
self.op_flow( self.op_flow(
match BinOpKind::from_token(token) { match BinOpKind::from_token(token) {
Ok(op) => op, Ok(op) => op,