Skip to content
This repository has been archived by the owner on May 1, 2021. It is now read-only.

BinaryExpression bug #25

Open
Vorlias opened this issue Feb 22, 2021 · 1 comment
Open

BinaryExpression bug #25

Vorlias opened this issue Feb 22, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Vorlias
Copy link
Member

Vorlias commented Feb 22, 2021

range 1 10 | print

ExpressionStatement {
	SimpleCallExpression {
		Identifier range
		Number 1
		BinaryExpression | {
			Number 10
			SimpleCallExpression {
				Identifier print
			}
		}
	}
}

This makes no sense, it should be

ExpressionStatement {
	BinaryExpression | {
		SimpleCallExpression {
			Identifier range
			Number 1
			Number 10
		}
		SimpleCallExpression {
			Identifier print
		}
	}
}
@Vorlias Vorlias added the bug Something isn't working label Feb 22, 2021
@Vorlias
Copy link
Member Author

Vorlias commented Feb 22, 2021

Bug is caused due to mutateExpression. Should not need a mutate expression inside a simple function call.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant