From: Tom <tom.primozic@gmail.com>
To: "Christophe Raffalli" <Christophe.Raffalli@univ-savoie.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] ocamlyacc, menhir, dypgen, camp4, elkhound
Date: Sat, 17 Mar 2007 23:21:14 +0100 [thread overview]
Message-ID: <c1490a380703171521u2f38792cy956fa7d790d36347@mail.gmail.com> (raw)
In-Reply-To: <45FB033A.5040201@univ-savoie.fr>
[-- Attachment #1: Type: text/plain, Size: 756 bytes --]
Possibly a difficult grammar is the grammar of OCaml value definition...
structure_item:
LET rec_flag let_bindings
;
rec_flag:
/* empty */
| REC
;
val_ident:
LIDENT
| LPAREN operator RPAREN
;
let_bindings:
let_binding
| let_bindings AND let_binding
;
let_binding:
val_ident fun_binding
| pattern EQUAL seq_expr
;
fun_binding:
strict_binding
| type_constraint EQUAL seq_expr
;
strict_binding:
EQUAL seq_expr
| labeled_simple_pattern fun_binding
;
Indeed there are some "unknown" items, but the difficult part here is
trying to parse the function declaration with
variable number of parameters, using no (slow) recursion.
Hm... maybe, I don't know, I found this both hard to think of and hard
to understand.
- Tom
[-- Attachment #2: Type: text/html, Size: 983 bytes --]
prev parent reply other threads:[~2007-03-17 22:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-16 20:51 Christophe Raffalli
2007-03-17 17:12 ` [Caml-list] " Aleksey Nogin
2007-03-17 22:21 ` Tom [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=c1490a380703171521u2f38792cy956fa7d790d36347@mail.gmail.com \
--to=tom.primozic@gmail.com \
--cc=Christophe.Raffalli@univ-savoie.fr \
--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