Reading Camlp4, part 10: custom lexers

As a final modification to our running JSON quotation example, I want to repair a problem noted in the first post —that the default lexer do...

13 Aug 2010

Jake Donham

Read Article
Reading Camlp4, part 9: implementing antiquotations

In this post I want to complicate the JSON quotation library from the previous post by adding antiquotations. AST with antiquotations I...

06 Aug 2010

Jake Donham

Read Article
Reading Camlp4, part 8: implementing quotations

The Camlp4 system of quotations and antiquotations is an awesome tool for producing and consuming OCaml ASTs. In this post (and the follow...

03 Aug 2010

Jake Donham

Read Article
Reading Camlp4, part 7: revised syntax

As we have seen, Camlp4 contains an alternative syntax for OCaml, the “revised” syntax, which attempts to correct some infelicities of the o...

27 Jul 2010

Jake Donham

Read Article