Skip to content

Backport letop monadic let syntax to pre-4.08 (making it bucklescript compatible!)#3

Merged
anmonteiro merged 5 commits intoanmonteiro:anmonteiro/ocaml-408from
jaredly:letop-backport
Nov 29, 2019
Merged

Backport letop monadic let syntax to pre-4.08 (making it bucklescript compatible!)#3
anmonteiro merged 5 commits intoanmonteiro:anmonteiro/ocaml-408from
jaredly:letop-backport

Conversation

@jaredly
Copy link
Copy Markdown

@jaredly jaredly commented Nov 28, 2019

🎉🎉🎉

This doesn't have to be part of the main 4.08 diff though, it might make sense to do it as a separate PR, once the main one has landed? idk

@jaredly jaredly changed the title Backport letop monadic let syntax to pre-4.08 Backport letop monadic let syntax to pre-4.08 (making it bucklescript compatible!) Nov 28, 2019
jaredly added a commit to jaredly/bucklescript that referenced this pull request Nov 28, 2019
…o enable let+ and friends!

If you want some cutting-edge technology, look no further.
This uses the code in this pr - reasonml/reason#2487
and the letop backport from this pr - anmonteiro/reason#3

And brings it all together!
@anmonteiro
Copy link
Copy Markdown
Owner

I think this makes sense to include in the 4.08 PR. Makes for a much better argument if we support all the versions.

@anmonteiro anmonteiro merged commit 20f99bb into anmonteiro:anmonteiro/ocaml-408 Nov 29, 2019
anmonteiro pushed a commit that referenced this pull request Jan 21, 2020
anmonteiro pushed a commit that referenced this pull request Feb 11, 2020
anmonteiro added a commit that referenced this pull request Mar 31, 2020
* Upgrade Parser to 4.08 AST and add 4.08 features

* fix exception tests

* Support alphanumeric characters in the monadic syntax (#1)

* Fix tests, add '.' and '!' to kwdopchar (#2)

Back in the "async await" discussions in reason land, there were vigorous proponents of both the "let." and "let!", so I figure I might as well add them here :)

* newline, really?

* fix test

* Backport `letop` monadic let syntax to pre-4.08 (making it bucklescript compatible!) (#3)

* fix some warnings

* apply mappers when printing to AST and ML

* fix binding ops interaction with comment chars

* Set correct location end position in letop binding parsing

* Add test for @supriyo's fix

* Fix syntax util for new AST

* pin dune to 1.x

* update lock files

Co-authored-by: Jared Forsyth <jabapyth@gmail.com>
Co-authored-by: Supriyo Sinha <supriyo@typeish.net>
Co-authored-by: Sikan He <sikanhe@users.noreply.github.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