Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Richard Jones <rich@annexia.org>
To: Sam Steingold <sds@gnu.org>
Cc: caml-list <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] lex: including regex definitions from a separate file
Date: Mon, 19 Nov 2007 21:24:42 +0000	[thread overview]
Message-ID: <20071119212442.GA22191@furbychan.cocan.org> (raw)
In-Reply-To: <4741F21C.4090806@gnu.org>

On Mon, Nov 19, 2007 at 03:29:16PM -0500, Sam Steingold wrote:
> I have several lexers in the same directory and I want them to share the
> regexp definitions.
> is there a way to put the regexp definitions in foo.mll and include them
>  in bar.mll?

Probably your best bet is to preprocess bar.mll in a Makefile -- eg.
using cpp or m4 to generate the file from an input 'bar.mll.in'.

Rich.

-- 
Richard Jones
Red Hat


  reply	other threads:[~2007-11-19 21:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-19 20:29 Sam Steingold
2007-11-19 21:24 ` Richard Jones [this message]
2007-11-19 22:44 ` [Caml-list] " Oliver Bandel

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=20071119212442.GA22191@furbychan.cocan.org \
    --to=rich@annexia.org \
    --cc=caml-list@yquem.inria.fr \
    --cc=sds@gnu.org \
    /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