From: Nicolas Ojeda Bar <nojb@math.harvard.edu>
To: caml-list@yquem.inria.fr
Subject: camlp5 questions
Date: Wed, 11 Aug 2010 19:45:26 -0400 [thread overview]
Message-ID: <EDEAE5EA-41D3-4FC7-B765-9771EFFBB83A@math.harvard.edu> (raw)
Hello,
I am using Camlp5's extensible grammars to parse a language
of my own (no relation at all with Ocaml's). I have some questions
that the manual doesn't seem to address and I was wondering how
to do:
1. When I load my grammar in a suitable Ocaml toplevel, I get
wonderful error messages for the parser, but when I am running
my compiler stand alone, I only get an exception. Is there a
way to recover the error messages that I get when running under
the toplevel for my use?
2. What is the simplest way of replacing (not extending) Ocaml's
grammar using Camlp5 ? Or equivalently, if I have a parser that
generates Ocaml AST using q_MLast, how do I do to feed that to
the Ocaml compiler?
Thanks!
N
next reply other threads:[~2010-08-11 23:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-11 23:45 Nicolas Ojeda Bar [this message]
2010-08-12 9:06 ` [Caml-list] " Daniel de Rauglaudre
2010-08-12 15:02 ` Daniel de Rauglaudre
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=EDEAE5EA-41D3-4FC7-B765-9771EFFBB83A@math.harvard.edu \
--to=nojb@math.harvard.edu \
--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