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
Strange syntax error
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-01-23 (22:23)
From: Kurt Welgehausen <kwel@k...>
Subject: Re: [Caml-list] Strange syntax error
> Is this a parsing bug?

See section 6.7 of the manual, 'pattern-matching ::=  ...'.

<when> is not mentioned in the definition of <pattern>
(section 6.6); it's mentioned only in the definition
of <expr> (section 6.7). Since an or-pattern is a
<pattern>, it appears that it can have only one <when>