caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Cannot find Stream Parser Documentation
@ 2002-04-05 18:58 Wolfram Kahl
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfram Kahl @ 2002-04-05 18:58 UTC (permalink / raw)
  To: caml-list


Hi,

  currently I am finally trying to port my stuff from OCaml-3.02
to OCaml-3.04, and I am having problems related with stream parsers:
I am using the stream error catcher

  [< .... ?? HERE >]

--- the separator once was a single `?',
and had to be turned into `??' for OLabl, and now neither works!
 
  ocamlc  -I +labltk -pp camlp4o -c xmlParse.ml
  File "xmlParse.ml", line 101, characters 6-7:
  Parse error: '>]' expected after [stream_patt] (in [parser_case])
  Preprocessing error

    99      let pc c = parser n
   100        [< '  x when x == c
   101        ? (string_of_int n ^ ": pc '" ^ String.make 1 c ^ "'")
   102          >] -> ();;

The documentation for stream parsers that had been in the
``Language extensions'' chapter of the OCaml manual
seems to have disappeared, too.
I looked for it in the camlp4 directory,
but that directory doesn't even contain a README.

In the OCaml distribution, camlp4 seems to come with no documentation
besides the manpage!
(And on the camlp4 web pages, I couldn't find anything related
 to the implementation of streams.)

A related issue: Among about 50 modules, only one uses stream parsers.
But

  ocamldep -pp camlp4o *.mli *.ml > .depend

takes much longer than without camlp4.
How can I tell ocamldep to use camlp4 only for this file?

The ocamldep chapter has only includes in its example Makefile:

  # Dependencies
  depend:
          $(OCAMLDEP) $(INCLUDES) *.mli *.ml > .depend

Is there any trick that would force file-specific settings to ocamldep?


Many thanks in advance!


Wolfram

-------------------
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] 4+ messages in thread

end of thread, other threads:[~2002-04-11 14:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <F241eHu7RVLCMUWktUq0000fbc1@hotmail.com>
2002-04-09 18:09 ` [Caml-list] Cannot find Stream Parser Documentation Wolfram Kahl
2002-04-10 11:03   ` [Caml-list] Streams Daniel de Rauglaudre
2002-04-11 14:35     ` Wolfram Kahl
2002-04-05 18:58 [Caml-list] Cannot find Stream Parser Documentation Wolfram Kahl

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