English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
camlp4 infix let
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-04-07 (19:05)
From: Jacques Le Normand <rathereasy@g...>
Subject: camlp4 infix let
Dear List,
I'm writing a camlp4 syntax extension and I'd like to write

    <:expr< let ( >>= ) = Bar.( >>= ) in 5 >>

but camlp4 complains:

      While expanding quotation "expr" in a position of "expr":
        Parse error: ")" or [ipatt] expected after "(" (in [ipatt])

yet it seems to be valid revised syntax. Does anyone have any ideas?