From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 462C7BC69 for ; Sat, 14 Oct 2006 15:57:41 +0200 (CEST) Received: from home.mk.pp.ru (av6800.comex.ru [217.10.34.155]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id k9EDvenc007460 for ; Sat, 14 Oct 2006 15:57:41 +0200 Received: from ermine.home (ermine.home [192.168.2.2]) by home.mk.pp.ru (Postfix) with ESMTP id 86B4020A0F for ; Sat, 14 Oct 2006 17:57:27 +0400 (MSD) Received: by ermine.home (Postfix, from userid 1001) id 6274A3A9CD0; Sat, 14 Oct 2006 17:57:47 +0400 (MSD) Date: Sat, 14 Oct 2006 17:57:47 +0400 From: Anastasia Gornostaeva To: caml-list@yquem.inria.fr Subject: pa_macro + ulex Message-ID: <20061014135747.GA14720@ermine.home> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline User-Agent: Mutt/1.5.11 X-Miltered: at concorde with ID 4530ECD4.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ifdef:01 regexp:01 regexp:01 lexer:01 ifdef:01 failwith:01 ocamlfind:01 ocamlc:01 camlp:01 cmo:01 -package:01 expr:01 expr:01 uncaught:01 rec:01 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