Skip to content

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

Merged
anmonteiro merged 3 commits intoanmonteiro:anmonteiro/ocaml-408from
jaredly:let+better
Nov 27, 2019
Merged

Fix tests, add '.' and '!' to kwdopchar#2
anmonteiro merged 3 commits intoanmonteiro:anmonteiro/ocaml-408from
jaredly:let+better

Conversation

@jaredly
Copy link
Copy Markdown

@jaredly jaredly commented Nov 27, 2019

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 :)

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 :)
@@ -0,0 +1,16 @@
let (let.opt) = (x, f) =>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

wait, why can't we put this on the other file too?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

because it's not valid ocaml syntax :)

@anmonteiro anmonteiro merged commit 2676a74 into anmonteiro:anmonteiro/ocaml-408 Nov 27, 2019
@jaredly
Copy link
Copy Markdown
Author

jaredly commented Nov 27, 2019

ugh the tests are failing because a newline is different 🙃

@anmonteiro
Copy link
Copy Markdown
Owner

I tried to fix it on the Reason PR

anmonteiro pushed a commit that referenced this pull request Jan 21, 2020
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 :)
anmonteiro pushed a commit that referenced this pull request Feb 11, 2020
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 :)
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