From: Hendrik Tews <tews@tcs.inf.tu-dresden.de>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] camlp4 help
Date: Mon, 18 Jul 2005 12:12:27 +0200 [thread overview]
Message-ID: <rl4qasa0dw.fsf@ithif59.inf.tu-dresden.de> (raw)
In-Reply-To: <20050715083901.GA24763@pulp.anu.edu.au>
Pietro Abate <Pietro.Abate@anu.edu.au> writes:
declared. Is there a way to tell campl4 : pass everything in between
RULE and END to a function my_parser ?
In principle yes: You can convert any function (of the right
type) into a camlp4 grammar entry. Then you can do something like
EXTEND
....
| "RULE"; result = enty_of_your_function -> ...
See "More Power for Camlp4 recursive descent parsing" in
http://wwwtcs.inf.tu-dresden.de/~tews/ocamlp4/camlp4-undoc.html
(if this leaves anything unclear just ask).
Bye,
Hendrik
next prev parent reply other threads:[~2005-07-18 10:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-15 8:39 Pietro Abate
2005-07-15 20:24 ` [Caml-list] " Martin Jambon
2005-07-18 10:12 ` Hendrik Tews [this message]
2005-07-19 5:23 ` Pietro Abate
2005-07-20 7:37 ` Hendrik Tews
2005-07-20 9:57 ` Gerd Stolpmann
2009-03-21 3:41 Camlp4 help Andre Nathan
2009-03-21 15:26 ` [Caml-list] " blue storm
2009-03-21 16:14 ` Andre Nathan
2009-03-21 17:24 ` blue storm
2009-03-21 17:26 ` blue storm
2009-04-13 0:05 Andre Nathan
2009-04-13 19:08 ` [Caml-list] " Andre Nathan
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=rl4qasa0dw.fsf@ithif59.inf.tu-dresden.de \
--to=tews@tcs.inf.tu-dresden.de \
--cc=caml-list@yquem.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