forked from AbleScript/ablescript
Added logical operators
This commit is contained in:
parent
97f0271534
commit
b6bce72b94
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue