* ocamlbuild, camlp4 and the _tags file
@ 2007-04-30 11:30 Joel Reymont
2007-04-30 12:01 ` [Caml-list] " Nicolas Pouillard
0 siblings, 1 reply; 2+ messages in thread
From: Joel Reymont @ 2007-04-30 11:30 UTC (permalink / raw)
To: Caml List
I see that ocamlbuild is being used to build camlp4 examples.
I thought I would ask a few questions on the meaning of the different
tags since they are not described in my version of the ocamlbuild
user's guide and the presentation slides.
>>> "apply_operator.ml" or "type_quotation.ml": camlp4rf, use_camlp4
The above is clear.
>>> "lambda_quot.ml": camlp4rf, use_camlp4_full
But what's the difference between use_camlp4_full and use_camlp4?
When should one be used vs the other?
>>> "test_macros.ml": pp(camlp4of ./macros.cmo)
>>> "lambda_test.ml": pp(camlp4of ./lambda_quot.cmo)
Why are these special options needed? When should I use them?
>>> <parse_files.*>: camlp4of, use_camlp4_full, use_dynlink
Why is dynlink used here?
Thanks, Joel
--
http://wagerlabs.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] ocamlbuild, camlp4 and the _tags file
2007-04-30 11:30 ocamlbuild, camlp4 and the _tags file Joel Reymont
@ 2007-04-30 12:01 ` Nicolas Pouillard
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Pouillard @ 2007-04-30 12:01 UTC (permalink / raw)
To: Joel Reymont; +Cc: Caml List
On 4/30/07, Joel Reymont <joelr1@gmail.com> wrote:
> I see that ocamlbuild is being used to build camlp4 examples.
>
> I thought I would ask a few questions on the meaning of the different
> tags since they are not described in my version of the ocamlbuild
> user's guide and the presentation slides.
>
> >>> "apply_operator.ml" or "type_quotation.ml": camlp4rf, use_camlp4
>
> The above is clear.
>
> >>> "lambda_quot.ml": camlp4rf, use_camlp4_full
>
> But what's the difference between use_camlp4_full and use_camlp4?
use_camlp4_full put a dependency on camlp4fulllib.{cma,cmxa}.
The camlp4fullib contains all the camlp4 modules including parsers,
printers... Some modules are incompatible and then loading them
together is only useful when using camlp4 as a library.
> When should one be used vs the other?
use_camlp4_lib most of the time.
> >>> "test_macros.ml": pp(camlp4of ./macros.cmo)
> >>> "lambda_test.ml": pp(camlp4of ./lambda_quot.cmo)
>
> Why are these special options needed? When should I use them?
That's just examples, here macros.cmo and lambda_quot.cmo are camlp4
extensions.
In your case you can do something like.
"foo.ml": pp(camlp4o -filter map -filter fold)
> >>> <parse_files.*>: camlp4of, use_camlp4_full, use_dynlink
>
> Why is dynlink used here?
Since camlp4 use dynlink one needs it too in order to link a standalone program.
--
Nicolas Pouillard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-04-30 12:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-30 11:30 ocamlbuild, camlp4 and the _tags file Joel Reymont
2007-04-30 12:01 ` [Caml-list] " Nicolas Pouillard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox