caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Anastasia Gornostaeva <ermine@ermine.pp.ru>
To: caml-list@yquem.inria.fr
Subject: pa_macro + ulex
Date: Sat, 14 Oct 2006 17:57:47 +0400	[thread overview]
Message-ID: <20061014135747.GA14720@ermine.home> (raw)

Hello.

Is it possible to combine pa_macro and pa_ulex?

=== ex.ml ===

IFDEF VALUE1 THEN
let regexp something1 = [^"1"]
   ELSE
let regexp something2 = [^"2"]
let regexp something3 = "abc"
ENDIF

let rec somewhat = lexer
   | IFDEF VALUE1 THEN 
     something1+
    ELSE
     something2+ | something3
    ENDIF -> ()

   | _ -> failwith "Unknown one"


bash-2.05b$ ocamlfind ocamlc -syntax camlp4o -ppopt pa_macro.cmo -package ulex -c ex.ml 
File "ex.ml", line 11, characters 4-8:
Parse error: [expr] expected after '+' (in [expr])
Uncaught exception: Stream.Error("[expr] expected after '+' (in [expr])")
Preprocessor error

ermine


                 reply	other threads:[~2006-10-14 13:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20061014135747.GA14720@ermine.home \
    --to=ermine@ermine.pp.ru \
    --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;
as well as URLs for NNTP newsgroup(s).