Version française
Home     About     Download     Resources     Contact us    
Browse thread
camlp4 3.10: <:expr < $opt:... >>
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nicolas Pouillard <nicolas.pouillard@g...>
Subject: Re: [Caml-list] camlp4 3.10: <:expr < $opt:... >>
On 4/30/07, Joel Reymont <joelr1@gmail.com> wrote:
> While compiling
>
>      <:expr<
>        let $list:field_refs$ in
>        let $opt:true$ $list:[match_patt_expr]$ in
>        do { iter field_sexps; $match_result$ }
>
> I get
>
> --
> While expanding quotation "expr" in a position of "expr":
>    Parse error: "module" or [opt_rec] expected after "let" (in [expr])
> --
>
> Which falls smack on "let $opt:true$".
>
> It looks like the syntax for "'a * option" has changed. How do I fix
> this?
>

Replace `$opt:true$' by `$rec:true$' or even simply by `rec' since the
antiquotation is constant.

-- 
Nicolas Pouillard