Skip to content

Multiway match typechecking and translation#1683

Merged
ncik-roberts merged 1 commit intooxcaml:pattern-guardsfrom
rajgodse:multiway-match-parsing
Aug 3, 2023
Merged

Multiway match typechecking and translation#1683
ncik-roberts merged 1 commit intooxcaml:pattern-guardsfrom
rajgodse:multiway-match-parsing

Conversation

@rajgodse
Copy link
Copy Markdown

@rajgodse rajgodse commented Aug 2, 2023

Forward changes from merged PR in fork.

* multiway typechecking and translation

* update jane test output

* self-review: format and style in translcore

* more translcore/typedtree cleanup

* expose value `is_guarded_rhs`

* fix typedtree printer

* make discussed changes to ocamldoc

* format: remove unnecessary parens in pattern

Co-authored-by: Nick Roberts <nroberts02@gmail.com>

* improve parmatch variable naming

* explain [exp_attributes] and [exp_extra] weirdness

* improve translcore [event_function*] naming

* inlined transl_body in transl_rhs

* rename pats_exp... to use "rhs" naming

* added test for guarded value/exception or-patterns

* address ocamldoc CRs

---------

Co-authored-by: Nick Roberts <nroberts02@gmail.com>
@rajgodse rajgodse requested a review from ncik-roberts as a code owner August 2, 2023 22:51
@ncik-roberts
Copy link
Copy Markdown
Contributor

Review of this was done in rajgodse#2, and this is a faithful reproduction of that, so I'm merging without further review.

@ncik-roberts ncik-roberts merged commit cde7931 into oxcaml:pattern-guards Aug 3, 2023
rajgodse added a commit to rajgodse/flambda-backend that referenced this pull request Aug 18, 2023
Multiway match typechecking and translation for pattern guards (#2)

* multiway typechecking and translation

* update jane test output

* self-review: format and style in translcore

* more translcore/typedtree cleanup

* expose value `is_guarded_rhs`

* fix typedtree printer

* make discussed changes to ocamldoc

* format: remove unnecessary parens in pattern

* improve parmatch variable naming

* explain [exp_attributes] and [exp_extra] weirdness

* improve translcore [event_function*] naming

* inlined transl_body in transl_rhs

* rename pats_exp... to use "rhs" naming

* added test for guarded value/exception or-patterns

* address ocamldoc CRs

---------

Co-authored-by: Nick Roberts <nroberts02@gmail.com>
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