paurkedal / ppx_regexp

Matching Regular Expressions with OCaml Patterns
GNU Lesser General Public License v3.0
57 stars 3 forks source link

compatibility with older versions? #1

Closed c-cube closed 7 years ago

c-cube commented 7 years ago

This looks very good, and I understand it's not mature yet, but is it feasible in the future to have compatibility with OCaml >= 4.02.*? 4.04.1 is still very recent…

paurkedal commented 7 years ago

4.03.0 should work, but 4.02.3 is not so straight forward: Since I use ocaml-migrate-parsetree, I use ppx_metaquot from Jane Street rather than from ppx_tools, and it is only available from version 4.03.0. The latest Ubuntu distributions at least have 4.02.3, so I guess that's one version we'd like so support at least for this to be useful.

paurkedal commented 7 years ago

I did a backport in the branch https://github.com/paurkedal/ppx_regexp/tree/ocaml-4.02 using metaquot from ppx_tools. I did a number of fixes before branching it, so I belive it's in a usable state, and it should be easy to backport fixes since few lines of real code lines are affected.

paurkedal commented 7 years ago

ocaml/opam-repository#9406