caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Wolfram Kahl <kahl@cas.mcmaster.ca>
To: caml-list@inria.fr
Subject: [Caml-list] Cannot find Stream Parser Documentation
Date: Fri, 5 Apr 2002 13:58:18 -0500	[thread overview]
Message-ID: <200204051858.g35IwIm01495@demokrit.cas.mcmaster.ca> (raw)


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


             reply	other threads:[~2002-04-05 19:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-05 18:58 Wolfram Kahl [this message]
     [not found] <F241eHu7RVLCMUWktUq0000fbc1@hotmail.com>
2002-04-09 18:09 ` Wolfram Kahl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200204051858.g35IwIm01495@demokrit.cas.mcmaster.ca \
    --to=kahl@cas.mcmaster.ca \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).