* pa_macro + ulex
@ 2006-10-14 13:57 Anastasia Gornostaeva
0 siblings, 0 replies; only message in thread
From: Anastasia Gornostaeva @ 2006-10-14 13:57 UTC (permalink / raw)
To: caml-list
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-14 13:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-14 13:57 pa_macro + ulex Anastasia Gornostaeva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox