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

Document extension nodes #756

Open
jchavarri opened this issue May 30, 2023 · 0 comments
Open

Document extension nodes #756

jchavarri opened this issue May 30, 2023 · 0 comments

Comments

@jchavarri
Copy link
Contributor

jchavarri commented May 30, 2023

I am missing a section that I could link to from melange.re where it explains how extension nodes are parsed and rendered in Reason.

https://v2.ocaml.org/manual/extensionnodes.html

In particular, the differences between extension nodes used with expressions:

let add = [%bs.raw "a + b"];

vs used with structures and signatures:

%bs.raw "var a = 1; var b = 2";

I guess this new section could also document attributes, as they are closely related to extensions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants