1
0

Change binary argument handling to fix expression chaining

This commit is contained in:
Jeff 2024-10-31 21:40:42 -04:00
parent febd7bb054
commit 32ff52d9b3

View File

@ -492,7 +492,6 @@ impl<'src> Parser<'src> {
instruction.b()
}
Operation::LoadBoolean => instruction.a(),
Operation::Close => {
return Err(ParseError::ExpectedExpression {
found: self.previous_token.to_owned(),
@ -502,7 +501,11 @@ impl<'src> Parser<'src> {
_ => {
push_back = true;
self.next_register()
if instruction.yields_value() {
instruction.a()
} else {
self.next_register()
}
}
};