Go to file
2024-08-05 09:35:20 -06:00
.gitignore Initial RPM 2024-07-03 15:05:25 -06:00
ocaml-ppxlib-jane.spec Initial RPM 2024-07-03 15:05:25 -06:00
README.md Added the README 2024-07-03 20:58:34 +00:00
sources Initial RPM 2024-07-03 15:05:25 -06:00

ocaml-ppxlib-jane

This is a library for use in ppxes for constructing and matching on ASTs corresponding to the augmented parsetree that is recognized by the Jane Street OCaml compiler.

ASTs constructed using this library are compatible with the standard OCaml compiler. Any syntax change known to this library is encoded as attributes, and the standard OCaml compiler's interpretation of the ASTs constructed by these library (which amounts to ignoring the attributes) is reasonable. That is, we only expose "unsurprising" things in this library. For example, if you construct an n-ary function using this library, the standard OCaml compiler will interpret it as n nested unary functions in the normal way.

Likewise, ppxes that use this library to match on Jane Street ASTs can also be used with the standard OCaml compiler. (The Jane Street AST cases of the match will just never be triggered when using the standard OCaml compiler.)