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 > 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 > >