fix(parser): fix for implicit multiplication
fixed implicit multiplication parsing going to `parse_primary` instead of `parse_additive`
This commit is contained in:
1 file changed
-1
@@ -69,7 +69,6 @@ impl Parser {
|
|||||||
left = Expression::Operation(Operator::Modulo, Box::new(left), Box::new(right));
|
left = Expression::Operation(Operator::Modulo, Box::new(left), Box::new(right));
|
||||||
}
|
}
|
||||||
Token::OpenParen => {
|
Token::OpenParen => {
|
||||||
self.position += 1;
|
|
||||||
let right = self.parse_group();
|
let right = self.parse_group();
|
||||||
left =
|
left =
|
||||||
Expression::Operation(Operator::Multiply, Box::new(left), Box::new(right));
|
Expression::Operation(Operator::Multiply, Box::new(left), Box::new(right));
|
||||||
|
|||||||
Reference in new issue
Block a user