Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
camlp4 stream parser syntax
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-03-08 (00:24)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] camlp4 stream parser syntax
On Sunday 08 March 2009 00:20:06 Matthieu Wipliez wrote:
> Joel asked me the parser so I gave it to him, but maybe it can be of use
> for others, so here it is. Apart from the code specific to the application,
> it gives a good example of a complete Camlp4 lexer/parser for a language.
> Note that for the lexer I started from a custom lexer made by Pietro Abate
> ( ) from the
> cduce lexer.

These are really wonderful examples, thank you!

I had no idea Camlp4 had been used to write such non-trivial parsers...

Dr Jon Harrop, Flying Frog Consultancy Ltd.