Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Daniel de Rauglaudre <daniel.de_rauglaudre@inria.fr>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] how to generate ocaml ast?
Date: Tue, 7 Dec 2010 19:09:52 +0100	[thread overview]
Message-ID: <20101207180951.GA10157@yquem.inria.fr> (raw)
In-Reply-To: <1095780421.1793530.1291717442907.JavaMail.root@zmbs3.inria.fr>

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/


           reply	other threads:[~2010-12-07 18:09 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1095780421.1793530.1291717442907.JavaMail.root@zmbs3.inria.fr>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101207180951.GA10157@yquem.inria.fr \
    --to=daniel.de_rauglaudre@inria.fr \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox