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

Repatch parser-standard to flambda-backend/main #82

Merged
merged 8 commits into from
Aug 6, 2024

Conversation

freemagma
Copy link

@freemagma freemagma commented Aug 2, 2024

Now that modes and n-ary functions are in the parsetree in flambda-backend, it's a good time to re-sync ocamlformat's parser. This required some changes to Normalize_std_ast.ml to deal with the new representation of functions in the parsetree.

Charlie Gunn added 2 commits August 2, 2024 15:24
Signed-off-by: Charlie Gunn <cgunn@janestreet.com>
Signed-off-by: Charlie Gunn <cgunn@janestreet.com>
Charlie Gunn added 3 commits August 2, 2024 15:35
Signed-off-by: Charlie Gunn <cgunn@janestreet.com>
Signed-off-by: Charlie Gunn <cgunn@janestreet.com>
Signed-off-by: Charlie Gunn <cgunn@janestreet.com>
@ccasin ccasin self-requested a review August 5, 2024 12:50
Copy link

@ccasin ccasin left a comment

Choose a reason for hiding this comment

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

I took a look mainly at the tests, documentation changes, and Normalize_std_ast.ml, which look good except for some questions about the latter. I pushed a commit that extends the new test with versions of each functions that have lots of comments and attributes (since that is where we usually have trouble). This did turn up three bugs, but they all predate this PR so I just left comments about them and we don't need to fix them before merging.

lib/Normalize_std_ast.ml Outdated Show resolved Hide resolved
lib/Normalize_std_ast.ml Outdated Show resolved Hide resolved
lib/Normalize_std_ast.ml Show resolved Hide resolved
@ccasin ccasin merged commit 9936264 into janestreet:jane Aug 6, 2024
7 of 8 checks passed
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.

3 participants