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: [Caml-list] how to generate ocaml ast?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-12-07 (18:09)
From: Daniel de Rauglaudre <daniel.de_rauglaudre@i...>
Subject: Re: [Caml-list] how to generate ocaml ast?

On Tue, Dec 07, 2010 at 11:24:02AM +0100, Nicolas Ojeda Bar wrote:

> I am writing a compiler for a small language into ocaml.
> I can generate ocaml code and then compile that, but I was wondering
> if there was a way to directly generate ocaml AST and compile or
> execute that using camlp[45]?

With Camlp[45], you can make the OCaml compiler consider your
programs in your 'small language' as valid OCaml sources.

Daniel de Rauglaudre