Version française
Home     About     Download     Resources     Contact us    
Browse thread
camlp4 and dirac notation
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: michel levy <michel.levy@i...>
Subject: camlp4 and dirac notation
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