ocaml-community / cppo

C-style preprocessor for OCaml
BSD 3-Clause "New" or "Revised" License
107 stars 26 forks source link

Compatibility examples for the README #48

Closed ShalokShalom closed 7 years ago

ShalokShalom commented 7 years ago

Cppo is a preprocessor for programming languages that follow lexical rules compatible with OCaml.

Like?

mjambon commented 7 years ago

Like ocaml, ocamllex, ocamlyacc, menhir, and all syntax extensions using camlp4, camlp5 (such as coq), or ppx. It probably doesn't so well with Reason, which uses C-like comment delimiters. but it should work with Bucklescript.

ShalokShalom commented 7 years ago

Do you think this is suitable for the documentation?

mjambon commented 7 years ago

I added a paragraph to the main readme. If you think you can do better, please go for it.

ShalokShalom commented 7 years ago

This reads very fine.

"Cppo should work with Bucklescript as well."

You may want to certificate this one day.

"It won't work so well with Reason code because Reason uses C-style comment delimiters / and /."

refmt is a tool that converts OCaml <> Reason, you might want to use that. https://github.com/facebook/reason/issues/1387