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

Improve the abstract syntax for tokens #307

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

Ericson2314
Copy link
Collaborator

Instead of deferring the handling of $$ to the backends, properly parse the $$ syntax up front, and store the result in the AST.

Note that the GLR backend was improperly substituting the $$ twice. Now that we have better types, this was surfaced as type error, and then removed.

Fixes #295

This prepares us to fix the AST for this purpose
Instead of deferring the handling of `$$` to the backends, properly
parse the `$$` syntax up front, and store the result in the AST.

Note that the GLR backend was improperly substituting the `$$` twice.
Now that we have better types, this was surfaced as type error, and then
removed.

Fixes haskell#295
@sgraf812 sgraf812 merged commit 17d3c93 into haskell:master Sep 20, 2024
14 checks passed
@Ericson2314 Ericson2314 deleted the no-map-dollar-dollar branch September 20, 2024 16:34
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

Successfully merging this pull request may close these issues.

Does mapDollarDollar belong in happy-grammar?
2 participants