caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Matt Gushee <matt@gushee.net>
To: caml-list@inria.fr
Subject: Re: [Caml-list] parser syntax?
Date: Tue, 01 Nov 2005 15:23:41 -0700	[thread overview]
Message-ID: <4367EAED.9030206@gushee.net> (raw)
In-Reply-To: <ad8cfe7e0510311447g6a7f0f9dkfef479d75cba4c4b@mail.gmail.com>

Jonathan Roewen wrote:

>> So what's the command line I need to compile source with 'parser' syntax?


I think

  ocamlc -pp camlp4o -c mysource.ml

should be sufficient. In some cases you might need to load additional
Camlp4 modules, in which case you'd do something like:

  ocamlc -pp 'camlp4o foo.cmo' -c mysource.ml

E.g., a commonly-used set for when you write your own syntax extensions is:

  ocamlc -pp 'camlp4o pa_extend.cmo q_MLast.cmo' -c mysource.ml

[ Pa_extend parses the grammar extension syntax, and Q_MLast processes
  quotation expanders to generate an AST. ]

But that's not what you're doing, so try the simplest version first.

--
Matt Gushee
Englewood, CO, USA




      reply	other threads:[~2005-11-01 22:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-31  6:01 Jonathan Roewen
2005-10-31  6:08 ` [Caml-list] " Jon Harrop
2005-10-31  6:24   ` Jonathan Roewen
2005-10-31 12:37     ` Oliver Bandel
2005-10-31 16:40       ` David Brown
2005-10-31 22:47     ` Jonathan Roewen
2005-11-01 22:23       ` Matt Gushee [this message]

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=4367EAED.9030206@gushee.net \
    --to=matt@gushee.net \
    --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).