From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id B034EBBAF for ; Tue, 7 Dec 2010 11:23:57 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuoEAA+a/UyM9xyZgWdsb2JhbACVKY4nAQEWIiK4NIhmhUkEhGKGD4MT X-IronPort-AV: E=Sophos;i="4.59,310,1288566000"; d="scan'208";a="70052759" Received: from math.harvard.edu (HELO abel.math.harvard.edu) ([140.247.28.153]) by mail3-smtp-sop.national.inria.fr with ESMTP; 07 Dec 2010 11:23:57 +0100 Received: from [192.168.1.92] (209-6-35-154.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com [209.6.35.154]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by abel.math.harvard.edu (Postfix) with ESMTP id EEB22A648 for ; Tue, 7 Dec 2010 05:23:51 -0500 (EST) Subject: how to generate ocaml ast? From: Nicolas Ojeda Bar Content-Type: text/plain; charset=us-ascii Message-Id: <9AE98FA6-B5D2-4243-9A55-39D921CB8F6D@math.harvard.edu> Date: Tue, 7 Dec 2010 05:23:46 -0500 To: caml-list@yquem.inria.fr Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v1082) X-Mailer: Apple Mail (2.1082) X-Spam: no; 0.00; ocaml:01 compiler:01 ocaml:01 camlp:01 compile:01 compile:01 ast:02 ast:02 nicolas:08 wondering:09 execute:09 writing:12 but:14 using:15 edu:15 Hi, 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]? Thanks! N