Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler: Grain parses a < before a >> incorrectly #1736

Open
spotandjake opened this issue Mar 7, 2023 · 0 comments
Open

Compiler: Grain parses a < before a >> incorrectly #1736

spotandjake opened this issue Mar 7, 2023 · 0 comments

Comments

@spotandjake
Copy link
Member

spotandjake commented Mar 7, 2023

While working on #1734 I notced that Grain formats x < (_I32_MIN >> 1N) as x < _I32_MIN >> 1N which produces a different output and also fails to typecheck.

After some investigation done by @ospencer it turned out to be a parser issue.

@spotandjake spotandjake added the grainfmt Issues related to the Grain formatter label Mar 7, 2023
@spotandjake spotandjake changed the title GrainFmt: Grain Formatting Binops Incorrectly. Compiler: Grain parses a < before a >> incorrectly Mar 7, 2023
@spotandjake spotandjake added bug compiler and removed grainfmt Issues related to the Grain formatter labels Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant