realworldocaml / book

V2 of Real World OCaml
https://dev.realworldocaml.org
Other
1.18k stars 175 forks source link

Replace Ulex recommendation with Sedlex #3067

Closed Leandros closed 4 years ago

Leandros commented 5 years ago

Sedlex is the successor to ulex and should be preferred.

Excerpt from the sedlex project page:

sedlex is the successor of the ulex project. Contrary to ulex which was implemented as a Camlp4 syntax extension, sedlex is based on the new "-ppx" technology of OCaml, which allow rewriting OCaml parse trees through external rewriters. (And what a better name than "sed" for a rewriter?)

(related https://github.com/realworldocaml/book/issues/1286)

XVilka commented 5 years ago

Quite relevant, since there is a showstopper with camlp4 on the recent OCaml versions: https://discuss.ocaml.org/t/camlp5-and-ocaml-4-08/3985/12

See the list of the packages that still depend on ulex, thus cannot be built for OCaml 4.08 and higher versions: