coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Hugo Herbelin <herbelin AT pauillac.inria.fr>
- To: Eduardo.Gimenez AT trusted-logic.fr
- Cc: coq-club AT pauillac.inria.fr
- Subject: Re: [Coq-Club] Notation
- Date: Fri, 1 Oct 2004 16:18:52 +0200 (MET DST)
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
Bonjour Eduardo,
> Notation "'function' n b '=>' e" :=
> (fun r => match r with (BR n b) => e end) (at level 200).
>
> Check (function n b => b).
> > Syntax error: [constr:operconstr level 200] expected after
> > [constr:operconstr level 200] (in [constr:binder_constr])
The default is to parse n and b at level 200 (do "Print Grammar
constr" for a confirmation). You have to tell explicitly that they are
identifiers.
Notation "'function' n b '=>' e" :=
(fun r => match r with (BR n b) => e end) (at level 200, b ident, n ident).
will work.
Hugo
- [Coq-Club] Notation, Eduardo Gimenez
- Re: [Coq-Club] Notation, Hugo Herbelin
Archive powered by MhonArc 2.6.16.