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
Ocaml 3.01 and camlp4 syntax?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Erik de Castro Lopo <mle+ocaml@m...>
Subject: Re: [Caml-list] Ocaml 3.01 and camlp4 syntax?
Martin Jambon wrote:

> Exactly.
> The 3.10 manual says:
> 7.2  Streams and stream parsers
> The syntax for streams and stream parsers is no longer part of the
> Objective Caml language, but available through a Camlp4 syntax
> extension.

Ah, thank you. I wasn't expecting that in the current manual,
only in the first one or two manual versions after the change.

> >  2) Any suggestions on how to handle the camlp4 syntax stuff in an
> >     ocamllex source file? Obviously, this code could be extracted
> >     and placed in its own file but I'm open to other suggestions.
> I don't know. Have you tried ocamllex followed by camlp4?

I tried it, but ocamllex errored out on the camlp4 code and
if I do camlp4 first, it errors out on the ocamllex code.

Erik de Castro Lopo
"Perl as a language has less a design than a thousand special
features flying in close formation."
-- From the c2 wiki