From: Jon Harrop <jon@ffconsultancy.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] camlp4 and quotations for c#: Two parsers needed?
Date: Mon, 28 Jan 2008 10:58:19 +0000 [thread overview]
Message-ID: <200801281058.19602.jon@ffconsultancy.com> (raw)
In-Reply-To: <EEB40DEB-42CE-448F-A745-B65CE37E696D@gmail.com>
On Monday 28 January 2008 10:59:15 Joel Reymont wrote:
> I would like to introduce statements in C# into my OCaml code and have
> camlp4 convert them to my C# AST at compile time. I would also like to
> reuse the same parser used by camlp4 to parser regular C# files.
>
> Is it possible to share a parser this way or do I need a special
> parser for quotations and another parser to read C# files?
Camlp4's lexer is undocumented so its utility here is limited. I suspect it
would be easier overall to simply forget all of that and manipulate ML-style
raw ASTs.
--
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/products/?e
next prev parent reply other threads:[~2008-01-28 11:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-28 10:59 Joel Reymont
2008-01-28 10:58 ` Jon Harrop [this message]
2008-01-28 14:34 ` [Caml-list] " Nicolas Pouillard
2008-05-01 21:25 ` Richard Jones
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=200801281058.19602.jon@ffconsultancy.com \
--to=jon@ffconsultancy.com \
--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