Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Philippe Veber <philippe.veber@gmail.com>
To: Joel Reymont <joelr1@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] camlp4 and generating class definitions
Date: Fri, 11 May 2012 22:52:26 +0200	[thread overview]
Message-ID: <CAOOOohT+snhaY8ZLRhTY9y9VhJ2mO4=iDMOU8=RTdw0KSX9LXw@mail.gmail.com> (raw)
In-Reply-To: <CAOQwdX0ofohvh1_jgnCvkDP0J9m54uMnyyjMm_epUuSxNX3ZVA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1087 bytes --]

Hi Joel,

You can have a look at Martin Jambon's col syntax extension :

https://github.com/pveber/col

Have a look at pa_col.ml, starting line 400.

Cheers,
  Philippe.


2012/5/11 Joel Reymont <joelr1@gmail.com>

> 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
> ---------------------+------------+---------------------------------------
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa-roc.inria.fr/wws/info/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
>

[-- Attachment #2: Type: text/html, Size: 1913 bytes --]

  reply	other threads:[~2012-05-11 20:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-11 20:27 Joel Reymont
2012-05-11 20:52 ` Philippe Veber [this message]
2012-05-12  2:08 ` Jacques Garrigue

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='CAOOOohT+snhaY8ZLRhTY9y9VhJ2mO4=iDMOU8=RTdw0KSX9LXw@mail.gmail.com' \
    --to=philippe.veber@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=joelr1@gmail.com \
    /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