caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] ANNOUNCE: OCaml and XML (OX v0.1)
@ 2003-10-03 17:11 didier plaindoux
  2003-10-04  3:16 ` [Caml-list] Camlp4 integration skaller
  0 siblings, 1 reply; 6+ messages in thread
From: didier plaindoux @ 2003-10-03 17:11 UTC (permalink / raw)
  To: caml-list

I'm pleased to annouce the first beta release of OX available at:

http://d.plaindoux.free.fr/

OX   is an  XML   integration  into Objective-Caml, providing
XML transducers   based on pseudo-tree  view. This gives a
homogeneous  view of XML within OCaml code, and lets  users
to manipulate such terms like any other ones, without constraint.

This is based on camlp4 and have been checked with OCaml
releases 3.6 and 3.7.

Any comments are welcome so don't hesitate.

Regards,

D. Plaindoux


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Caml-list] Camlp4 integration
  2003-10-03 17:11 [Caml-list] ANNOUNCE: OCaml and XML (OX v0.1) didier plaindoux
@ 2003-10-04  3:16 ` skaller
  2003-10-04 11:29   ` Alain.Frisch
  0 siblings, 1 reply; 6+ messages in thread
From: skaller @ 2003-10-04  3:16 UTC (permalink / raw)
  To: caml-list

Just some notes on camlp4. One problem I have noticed
is that camlp4'd codes don't work so well with other
tools such as ocamldep and ocamldoc. Both these programs
parse Ocaml but can't load camlp4 to do the job.
[I think you have to use pr_o.cmo to print a standard
Ocaml file to use them?]

Is there a better solution? 


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] Camlp4 integration
  2003-10-04  3:16 ` [Caml-list] Camlp4 integration skaller
@ 2003-10-04 11:29   ` Alain.Frisch
  2003-10-04 20:33     ` skaller
  0 siblings, 1 reply; 6+ messages in thread
From: Alain.Frisch @ 2003-10-04 11:29 UTC (permalink / raw)
  To: skaller; +Cc: caml-list

On 4 Oct 2003, skaller wrote:

> Just some notes on camlp4. One problem I have noticed
> is that camlp4'd codes don't work so well with other
> tools such as ocamldep and ocamldoc. Both these programs
> parse Ocaml but can't load camlp4 to do the job.
> [I think you have to use pr_o.cmo to print a standard
> Ocaml file to use them?]

Both ocamldep and ocamldoc accept the -pp argument. Sometimes, it would be
more convenient to specify the syntax extensions directly in the Caml
sources. I think that OCamlMakefile has some support for that.

Note that ocamlcp/ocamlprof don't support the -pp argument, however, and
to use the bytecode profiler, you'll indeed have to pretty print...

-- Alain

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] Camlp4 integration
  2003-10-04 11:29   ` Alain.Frisch
@ 2003-10-04 20:33     ` skaller
  2003-10-06  8:45       ` Olivier Andrieu
  0 siblings, 1 reply; 6+ messages in thread
From: skaller @ 2003-10-04 20:33 UTC (permalink / raw)
  To: Alain.Frisch; +Cc: caml-list

On Sat, 2003-10-04 at 21:29, Alain.Frisch@ens.fr wrote:
> On 4 Oct 2003, skaller wrote:
> 
> > Just some notes on camlp4. One problem I have noticed
> > is that camlp4'd codes don't work so well with other
> > tools such as ocamldep and ocamldoc. Both these programs
> > parse Ocaml but can't load camlp4 to do the job.
> > [I think you have to use pr_o.cmo to print a standard
> > Ocaml file to use them?]
> 
> Both ocamldep and ocamldoc accept the -pp argument.

It isn't not documented?

>  Sometimes, it would be
> more convenient to specify the syntax extensions directly in the Caml
> sources.

Yes, i think that would be nice.
There's a related issue for C++ where some discussion of
a directive:

#language "iso-9988"

or whatever so extensions in the next version don't
break existing codes (mainly by some identifiers becoming keywords).


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] Camlp4 integration
  2003-10-04 20:33     ` skaller
@ 2003-10-06  8:45       ` Olivier Andrieu
  2003-10-07 10:19         ` Alain.Frisch
  0 siblings, 1 reply; 6+ messages in thread
From: Olivier Andrieu @ 2003-10-06  8:45 UTC (permalink / raw)
  To: skaller; +Cc: caml-list

 skaller [ 5 October 2003] :
 > On Sat, 2003-10-04 at 21:29, Alain.Frisch@ens.fr wrote:
 > > On 4 Oct 2003, skaller wrote:
 > > 
 > > > Just some notes on camlp4. One problem I have noticed
 > > > is that camlp4'd codes don't work so well with other
 > > > tools such as ocamldep and ocamldoc. Both these programs
 > > > parse Ocaml but can't load camlp4 to do the job.
 > > > [I think you have to use pr_o.cmo to print a standard
 > > > Ocaml file to use them?]
 > > 
 > > Both ocamldep and ocamldoc accept the -pp argument.
 > 
 > It isn't not documented?
 > 
 > > Sometimes, it would be more convenient to specify the syntax
 > > extensions directly in the Caml sources.
 > 
 > Yes, i think that would be nice.

You can almost do this since camlp4 recognizes the #load directive in
.ml files. That way you only put `-pp camlp4o' on the command line and
the particular syntax extension is in the .ml file. It simplifies
Makefiles a lot.

-- 
   Olivier

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] Camlp4 integration
  2003-10-06  8:45       ` Olivier Andrieu
@ 2003-10-07 10:19         ` Alain.Frisch
  0 siblings, 0 replies; 6+ messages in thread
From: Alain.Frisch @ 2003-10-07 10:19 UTC (permalink / raw)
  To: Olivier Andrieu; +Cc: Caml list

On Mon, 6 Oct 2003, Olivier Andrieu wrote:

> You can almost do this since camlp4 recognizes the #load directive in
> .ml files. That way you only put `-pp camlp4o' on the command line and
> the particular syntax extension is in the .ml file. It simplifies
> Makefiles a lot.

Indeed, #load seems to be recognized by camlp4. Thanks !

Where did you find this information? It doesn't seem to be in the camlp4
manual.

-- Alain

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-10-07 10:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-03 17:11 [Caml-list] ANNOUNCE: OCaml and XML (OX v0.1) didier plaindoux
2003-10-04  3:16 ` [Caml-list] Camlp4 integration skaller
2003-10-04 11:29   ` Alain.Frisch
2003-10-04 20:33     ` skaller
2003-10-06  8:45       ` Olivier Andrieu
2003-10-07 10:19         ` Alain.Frisch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).