From: Joel Reymont <joelr1@gmail.com>
To: Jake Donham <jake@donham.org>
Cc: "O'Caml Mailing List" <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] camlp4 grammar and LIST1
Date: Tue, 10 Mar 2009 23:36:56 +0000 [thread overview]
Message-ID: <0D14077B-F7FC-4DF0-B0FA-21445B75061B@gmail.com> (raw)
In-Reply-To: <c7e4e9f0903101601i4d5c580dl9427dd98e2e4adbf@mail.gmail.com>
On Mar 10, 2009, at 11:01 PM, Jake Donham wrote:
> An approach
> that works for me is to think "recursive descent" and always give
> rules that check at least one token before branching to another rule.
Something like this then?
sellMethod:
[
[ "Next"; "Bar"; at = OPT "At$"; e = expr;
f = [ [ "Stop" | "Lower" ] -> fun x -> Stop x
| [ "Limit" | "Higher" ] -> fun x -> Limit x
] -> (f e, at)
]
];
---
http://tinyco.de
--- Mac & iPhone
prev parent reply other threads:[~2009-03-10 23:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-10 18:41 Joel Reymont
2009-03-10 21:48 ` [Caml-list] " Jake Donham
2009-03-10 22:07 ` Joel Reymont
2009-03-10 23:01 ` Jake Donham
2009-03-10 23:36 ` Joel Reymont [this message]
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=0D14077B-F7FC-4DF0-B0FA-21445B75061B@gmail.com \
--to=joelr1@gmail.com \
--cc=caml-list@yquem.inria.fr \
--cc=jake@donham.org \
/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