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

Constant expression parser is a disgusting mess #1

Open
davidgiven opened this issue Aug 20, 2017 · 0 comments
Open

Constant expression parser is a disgusting mess #1

davidgiven opened this issue Aug 20, 2017 · 0 comments

Comments

@davidgiven
Copy link
Owner

It's a cut-and-pasted lobotimised crippled version of the main expression parser, full of bugs, and shouldn't really exist. Constants should be parsed as part of the main expression parser.

Doing this is more complicated than it sounds as sometimes we need to parse constants while parsing a non-constant, so the two need to nest sensibly.

This would probably also give us constant folding in the parser, rather than leaving it for the typechecker (which would simplify the typechecker).

davidgiven added a commit that referenced this issue Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant