From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q4BKRRHh021688 for ; Fri, 11 May 2012 22:27:27 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApECANd1rU/RVaA2imdsb2JhbABEs1oIIgEBAQoJDQcSBiOCLgIsARseAxIQXQERAQUBPRqHXQEDCwuZdoJeCQOMJIJzhHEKGScNV4h2AQULjgODJgSVfYERjU89hA0 X-IronPort-AV: E=Sophos;i="4.75,572,1330902000"; d="scan'208";a="158059897" Received: from mail-pb0-f54.google.com ([209.85.160.54]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-MD5; 11 May 2012 22:27:21 +0200 Received: by pbbro2 with SMTP id ro2so4909243pbb.27 for ; Fri, 11 May 2012 13:27:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=H3fd1UmRnxIqvfjhSVO2UlnoLZIXVeJpl4Q7j4Dmaf8=; b=Q/Zmb2vKlBjZH+au+85NVvwQEWV4T9jGUKxyqyIEN35m2Hz1TAV5PxpTSoaIMe6jN/ 28ZHUGoi1+Q5nzwKVq22lGhWn8X9AT3dMe4gFbTn0VwHsJHOW0+JNTfK78GgTdzyYQEk jTfcOs8BAcgU4nJs+Qs4AxnbBZanUlBtgDrUIes6nyFkXIHBwbaUFPqX+Qw9WtvyOg0+ EPupMCjxJFVwdXOPzWtoeNhQHb4KWomon3Ep175F5QAiHPjJOuW0TkrHjDLFR3X74A9T NHxNZdwXlQnEjxsllLulHtMdl4TdiFVJ9TVtcfxwmCsG0RTjulfLaDRwBA5P8umUTM0K DjvA== MIME-Version: 1.0 Received: by 10.68.221.35 with SMTP id qb3mr508773pbc.136.1336768040257; Fri, 11 May 2012 13:27:20 -0700 (PDT) Received: by 10.68.228.194 with HTTP; Fri, 11 May 2012 13:27:20 -0700 (PDT) Date: Fri, 11 May 2012 21:27:20 +0100 Message-ID: From: Joel Reymont To: caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1 Subject: [Caml-list] camlp4 and generating class definitions I would like to auto-generate an object with a couple of mutable fields and some methods. I would then like to pretty-print the code into a file. Are there any examples showing how to do this with camlp4? Thanks in advace, Joel -------------------------------------------------------------------------- AlgoKit: EasyLanguage trading strategies, on the server, w/ Rithmic R|API ---------------------+------------+--------------------------------------- http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont ---------------------+------------+---------------------------------------