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=1.0 required=5.0 tests=AWL,SPF_NEUTRAL 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 8BCFCBC6B for ; Mon, 19 Mar 2007 18:51:05 +0100 (CET) Received: from imag.imag.fr (imag.imag.fr [129.88.30.1]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2JHp4qn019912 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Mon, 19 Mar 2007 18:51:05 +0100 Received: from [IPv6:2001:660:5301:26:201:2ff:fe20:e2d7] ([IPv6:2001:660:5301:26:201:2ff:fe20:e2d7]) by imag.imag.fr (8.13.8/8.13.8) with ESMTP id l2JHotaN019957 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 19 Mar 2007 18:50:56 +0100 (CET) Message-ID: <45FECE85.8080403@imag.fr> Date: Mon, 19 Mar 2007 18:55:17 +0100 From: michel levy User-Agent: Mozilla Thunderbird 1.0.8-1.1.fc4 (X11/20060501) X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: camlp4 and dirac notation Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded STARTTLS authentication, not delayed by milter-greylist-3.0 (imag.imag.fr [IPv6:2001:660:5301:1e::101]); Mon, 19 Mar 2007 18:50:56 +0100 (CET) X-IMAG-MailScanner-Information: Please contact IMAG DMI for more information X-IMAG-MailScanner: Found to be clean X-IMAG-MailScanner-SpamCheck: X-IMAG-MailScanner-From: michel.levy@imag.fr X-Miltered: at concorde with ID 45FECD89.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 notation:01 ocaml:01 syntax:01 camlp:01 notation:01 expr:01 expr:01 michel:01 michel:01 parse:02 imag:02 imag:02 cedex:02 modify:05 I try to modify the ocaml syntax with camlp4 to add the Dirac notation |v >. Have you any solution ? I have tried with EXTEND expr : LEVEL "simple" [["|"; e=expr ;">" -> <:expr< ket $e$>>] ]; END;; but I have the following message |z>;; ^^ Parse error: [expr] expected after '>' (in [expr]) I can replace > by : but it is not the dirac notation. Have you any idea ? -- Michel Levy L.S.R., Bureau C214, B.P.72 - 38402 SAINT MARTIN D'HERES CEDEX e.mail : Michel.Levy@imag.fr tel :(33)476514022 http://www-lsr.imag.fr/users/Michel.Levy