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

Support GHC as the only compiler to build happy generated parsers #278

Merged
merged 4 commits into from
Jun 23, 2024

Conversation

Kariiem
Copy link
Contributor

@Kariiem Kariiem commented Jun 15, 2024

This PR removes all the code related -g/--ghc args, making it on by default, removing all conditional code based on it, so that the generated parsers can only build with GHC compiler.

@int-index @Ericson2314 @sgraf812 This PR is has another commit, from #276, ignore it for now, I based the second commit on it just to make merging both easier, rather than doing rebase/merge later.

packages/backend-lalr/data/HappyTemplate.hs Outdated Show resolved Hide resolved
packages/backend-lalr/data/HappyTemplate.hs Outdated Show resolved Hide resolved
packages/backend-lalr/data/HappyTemplate.hs Outdated Show resolved Hide resolved
packages/backend-lalr/data/HappyTemplate.hs Outdated Show resolved Hide resolved
@Kariiem Kariiem force-pushed the ghc-compiler-only branch from a9793e7 to 014ddd6 Compare June 19, 2024 18:16
@Kariiem Kariiem force-pushed the ghc-compiler-only branch from 014ddd6 to 3d5a060 Compare June 20, 2024 19:35
@Kariiem
Copy link
Contributor Author

Kariiem commented Jun 20, 2024

@sgraf812 I did a rebase on master after merging #276

Copy link
Collaborator

@sgraf812 sgraf812 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be feasible now to give type signatures to the main functions, such as happyDoAction, happyShift and happyGoto. In my experience, being able to write these down would have helped me quite a bit while developing the resumptive draft.

Otherwise this looks good to me.

packages/backend-lalr/data/HappyTemplate.hs Outdated Show resolved Hide resolved
tests/Makefile Outdated Show resolved Hide resolved
@Kariiem Kariiem force-pushed the ghc-compiler-only branch from f434f2b to 21f25f8 Compare June 22, 2024 17:52
@Kariiem Kariiem force-pushed the ghc-compiler-only branch from 21f25f8 to 6c3719d Compare June 22, 2024 19:26
Applying a few suggestions on the PR
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.

2 participants