From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA28746; Wed, 16 Oct 2002 13:59:21 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id NAA29015 for ; Wed, 16 Oct 2002 13:59:20 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from smtp4.cp.tin.it (vsmtp4.tin.it [212.216.176.224]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g9GBxJD29623 for ; Wed, 16 Oct 2002 13:59:19 +0200 (MET DST) Received: from favilla.biomedin.int (212.171.41.162) by smtp4.cp.tin.it (6.5.029) id 3D9AD4B0005243C4 for caml-list@inria.fr; Wed, 16 Oct 2002 13:59:17 +0200 Content-Type: text/plain; charset="iso-8859-1" From: Stalkern 2 Reply-To: stalkern2@tin.it To: caml-list@inria.fr Subject: [Caml-list] camlp4 avec ocamlopt Date: Wed, 16 Oct 2002 13:59:13 +0200 User-Agent: KMail/1.4.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200210161359.13855.stalkern2@tin.it> Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Savez-vous si on peut compiler camlp4 avec ocamlopt, et comment? j'ai essayé de compiler l'example ----------------------- camlp4foo.ml ----------------------- let gram = Grammar.create (Plexer.make ());; let expr = Grammar.Entry.create gram "expr" ;; EXTEND expr : [ [ x = expr; "+"; y = expr -> x + y | x = expr; "-"; y = expr -> x - y ] | [ x = expr; "*"; y = expr -> x * y | x = expr; "/"; y = expr -> x / y ] | [ x = INT -> int_of_string x | "("; e = expr; ")" -> e ] ] ; END;; ----------------------- avec la commande ocamlopt -I +camlp4 gramlib.cmxa camlp4foo.ml -o camlp4foo.opt mais j'obtiens l'erreur File "camlp4foo.ml", line 5, characters 9-10: Syntax error en correspondance de ce qui suit 'expr' et je me sens un peu en panne de documentation (comme d'habitude...) Merci d'avance Ernesto ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners