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

Get rid of template preprocessing #175

Merged
merged 1 commit into from
Dec 31, 2020
Merged

Conversation

Ericson2314
Copy link
Collaborator

Instead of preprocessing an outer layer of CPP when building Alex, just
always produce code that uses CPP. Combined with from-source
bootstrapping, this means Alex an have a perfectly bog standard build
system, with Makefiles and extra steps strictly optional.

I gather Hugs, and possibly other Haskell implementations, out of the
box doesn't support CPP, but I don't want this to stop us. Those can
just manually run CPP on the generated code first.

Same idea as haskell/happy#179.

Instead of preprocessing an outer layer of CPP when building Alex, just
always produce code that uses CPP. Combined with from-source
bootstrapping, this means Alex an have a perfectly bog standard build
system, with Makefiles and extra steps strictly optional.

I gather Hugs, and possibly other Haskell implementations, out of the
box doesn't support CPP, but I don't want this to stop us. Those can
just manually run CPP on the generated code first.
@Ericson2314 Ericson2314 force-pushed the no-preprocess-templates branch from b1c4e56 to 8360bbe Compare December 29, 2020 20:05
@simonmar
Copy link
Member

LGTM

@Ericson2314
Copy link
Collaborator Author

Thanks @simonmar!

@Ericson2314 Ericson2314 merged commit 35f07a1 into master Dec 31, 2020
@Ericson2314 Ericson2314 deleted the no-preprocess-templates branch December 31, 2020 13:55
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