Quantcast
Channel: Active questions tagged ocaml - Stack Overflow
Viewing all articles
Browse latest Browse all 529

in Ocaml Ppxlib extension with two or more parameter

$
0
0

Could you give code of OCaml PPX extension to rewrite expressions of the form[%add a b] into a + b. Specifically, I'm looking for an extension that will:

Recognize and match the construct [%add a b], where a and b are any valid OCaml expressions that can be added using the + operator.Transform the expression [%add a b] into the standard OCaml addition operation a + b.


Viewing all articles
Browse latest Browse all 529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>