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
Re: Q: camlp4 use?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2000-01-25 (08:44)
From: Gerard Huet <Gerard.Huet@i...>
Subject: Re: Q: camlp4 use?
I use camlp4 for linguistic engineering. I found the facility for writing
lexical and syntactic analysers very well designed and well integrated in=
language, making it convenient to document in one single formalism a
complex parsing process involving many transducers and grammars.
The implementation of streams on which camlp4 relies is very efficient, one
parse several megabytes of data without memory leaks with closures.

As a side effect, I got used to the "revised" syntax, which is more regular
and less error-prone than the standard one. It would be neat if some
convention could be agreed on (such as an optional formated initial
comment) such that the compiler and other metatheoretical tools would
automatically apply the proper preprocessing without having to write it in
the Makefile.

On the other hand, a good documentation ought to be written if one wants to
promote a wider use of camlp4 and stream-based parsers.

Gérard Huet