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

Build F* with sedlex 2.4 #2388

Merged
merged 2 commits into from
Nov 9, 2021
Merged

Build F* with sedlex 2.4 #2388

merged 2 commits into from
Nov 9, 2021

Conversation

tahina-pro
Copy link
Member

@tahina-pro tahina-pro commented Nov 8, 2021

This PR fixes #2343: F* has long not built with sedlex 2.4.

As @toots pointed out at #2343 (comment) , we are actually "replacing" sedlex's Sedlexing module with our own src/parser/ml/FStar_Sedlexing.ml, namely by:

module Sedlexing = FStar_Sedlexing

There, I noticed that __private__next_int was not defined in our FStar_Sedlexing, but the lexer implementation generated by sedlex 2.4 does use that function. So I add it in this PR.

With this PR, docker build --pull --file .docker/opam.Dockerfile . successfully builds a Docker image that installs sedlex 2.4, builds F* against it, and run all F* regression tests.

Thank you Romain for your insights!

@nikswamy
Copy link
Collaborator

nikswamy commented Nov 9, 2021

thanks! this is great and solves some install brittleness that many people have reported.

@nikswamy nikswamy merged commit e7cef73 into master Nov 9, 2021
@nikswamy nikswamy mentioned this pull request Nov 9, 2021
tahina-pro added a commit to project-everest/everest that referenced this pull request Nov 9, 2021
@tahina-pro tahina-pro deleted the _taramana_2343 branch January 4, 2022 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

F* does not build with sedlex 2.4
2 participants