From: Christophe Raffalli <christophe.raffalli@univ-savoie.fr>
To: Martin Jambon <martin_jambon@emailuser.net>
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] camlp4 char stream
Date: Mon, 12 Sep 2005 07:39:35 +0200 [thread overview]
Message-ID: <43251497.1090905@univ-savoie.fr> (raw)
In-Reply-To: <Pine.LNX.4.63.0509111448570.5635@droopy>
OK, I found it (quote from your tutorial):
let operator_rparen =
Grammar.Entry.of_parser gram "operator_rparen"
(fun strm ->
match Stream.npeek 2 strm with
| [("", s); ("", ")")] when is_operator s ->
begin
Stream.junk strm;
Stream.junk strm;
s
end
| _ -> raise Stream.Failure)
OK, I read your tutorial, but did not get the point ... thks
and what is the first member of the tuple ?
Why is the second member a string and not a char ?
>
> See paragraph "Do it yourself" at
> http://wwwtcs.inf.tu-dresden.de/~tews/ocamlp4/camlp4-undoc.html#power
>
>
>
> Martin
>
> --
> Martin Jambon, PhD
> http://martin.jambon.free.fr
next prev parent reply other threads:[~2005-09-12 5:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-11 20:19 Christophe Raffalli
2005-09-11 21:51 ` [Caml-list] " Martin Jambon
2005-09-12 5:39 ` Christophe Raffalli [this message]
2005-09-12 6:40 ` Martin Jambon
2005-09-12 13:27 ` Olivier Andrieu
2005-09-12 22:31 ` Pietro Abate
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=43251497.1090905@univ-savoie.fr \
--to=christophe.raffalli@univ-savoie.fr \
--cc=caml-list@inria.fr \
--cc=martin_jambon@emailuser.net \
/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