From: Andre Nathan <andre@digirati.com.br>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Camlp4 help
Date: Mon, 13 Apr 2009 16:08:57 -0300 [thread overview]
Message-ID: <1239649737.6531.9.camel@andre.mz.digirati.com.br> (raw)
In-Reply-To: <1239581159.6443.13.camel@homesick>
On Sun, 2009-04-12 at 21:05 -0300, Andre Nathan wrote:
> If I simplify the rule above to
>
> "forall"; "("; gen = expr; ")"; var = ipatt; ".";
> e1 = expr; impl = OPT "=>"; e2 = OPT expr ->
>
> then everything after the dot is bound to e1, even when there's a "=>".
For the archives, this happens because "=>" is a valid infix operator
name, and thus is matched by "e1 = expr". Changing it to "->" did the
trick. Thanks to bluestorm at #ocaml for that :)
Andre
next prev parent reply other threads:[~2009-04-13 19:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-13 0:05 Andre Nathan
2009-04-13 19:08 ` Andre Nathan [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-03-21 3:41 Andre Nathan
2009-03-21 15:26 ` [Caml-list] " blue storm
2009-03-21 16:14 ` Andre Nathan
2009-03-21 17:24 ` blue storm
2009-03-21 17:26 ` blue storm
2005-07-15 8:39 camlp4 help Pietro Abate
2005-07-15 20:24 ` [Caml-list] " Martin Jambon
2005-07-18 10:12 ` Hendrik Tews
2005-07-19 5:23 ` Pietro Abate
2005-07-20 7:37 ` Hendrik Tews
2005-07-20 9:57 ` Gerd Stolpmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1239649737.6531.9.camel@andre.mz.digirati.com.br \
--to=andre@digirati.com.br \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox