From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA17242; Fri, 5 Apr 2002 21:00:51 +0200 (MET DST) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA04694 for ; Fri, 5 Apr 2002 21:00:50 +0200 (MET DST) Received: from ritchie.cas.McMaster.CA (ritchie.cas.McMaster.CA [130.113.68.10]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g35J0nT20354 for ; Fri, 5 Apr 2002 21:00:49 +0200 (MET DST) Received: from demokrit.cas.mcmaster.ca (demokrit.cas.McMaster.CA [130.113.68.194]) by ritchie.cas.McMaster.CA (8.11.6+Sun/8.11.6) with ESMTP id g35J0h212846; Fri, 5 Apr 2002 14:00:43 -0500 (EST) Received: (from kahl@localhost) by demokrit.cas.mcmaster.ca (8.11.6/8.11.6/SuSE Linux 0.5) id g35IwIm01495; Fri, 5 Apr 2002 13:58:18 -0500 Date: Fri, 5 Apr 2002 13:58:18 -0500 Message-Id: <200204051858.g35IwIm01495@demokrit.cas.mcmaster.ca> X-Authentication-Warning: demokrit.cas.mcmaster.ca: kahl set sender to kahl@cas.mcmaster.ca using -f From: Wolfram Kahl To: caml-list@inria.fr Subject: [Caml-list] Cannot find Stream Parser Documentation Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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