[ANN] Reason syntax support added to astexplorer.net


Reason syntax support has been added to astexplorer.net.

This will allow to inspect the parsed abstract syntax tree of any Reason program that is syntactically valid. All languages of OCaml (core, class, modules) are supported.

Variant arguments have been manually labelled in the resulting tree visualization, so even when there are optional types with value None, the output will include some information about what that parameter represents.

For example, Pexp_fun that has the parameters (Asttypes.arg_label, option(expression), pattern, expression) is represented like:


With astexplorer, one can generate links from specific programs using the “Snippet” menu, and share them with others or include in blog posts, etc. For example: https://astexplorer.net/#/gist/2763ec70ba6cd48fabcbfedce208c3a1/31f21e2cd35d716e3c7793d7626b24b27ff93678

Please let me know any feedback you might have, or bugs you might encounter. Thanks! :slight_smile: