Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: Daniel de Rauglaudre <daniel.de_rauglaudre@i...>
Subject: Re: [Caml-list] how to generate ocaml ast?
Hi,

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
http://pauillac.inria.fr/~ddr/