Articles tagged with extension


Authors: Çagdas Bozman
Date: 2014-04-01
Category: OCaml

OCaml 4.01 with its new feature to disambiguate constructors allows to do a nice trick: a simple and generic syntax extension that allows to define your own syntax without having to write complicated parsetree transformers. We propose an implementation in the form of a ppx rewriter. it does only a s... (Read more)