From: Miles Egan <miles@caddr.com>
To: caml-list@inria.fr
Subject: Re: [Caml-list] recursive variants
Date: Sat, 12 May 2001 08:28:05 -0700 [thread overview]
Message-ID: <20010512082805.B50306@caddr.com> (raw)
In-Reply-To: <3AFCFB23.CB503721@tsc.uc3m.es>; from fva@tsc.uc3m.es on Sat, May 12, 2001 at 10:58:11AM +0200
On Sat, May 12, 2001 at 10:58:11AM +0200, Francisco Valverde Albacete wrote:
> You don't need a recursive type for this:
>
> type word = Word of string
> type word_list = word list
> type phrase = unit -> word list
> type phrase_list = phrase list
I tried this also, but I couldn't figure out how to type the list that contains
both (phrase_list * phrase_list) and (phrase_list * word_list) without grouping
them in a single common type. The compiler still rejects the grammar list
because its elements are not homogenous.
--
miles
-------------------
To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr
next prev parent reply other threads:[~2001-05-12 15:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-12 5:52 Miles Egan
2001-05-12 15:13 ` [Caml-list] converting a list to a Stream Terrence Brannon
2001-05-12 15:31 ` Sylvain Pogodalla
2001-05-12 15:35 ` Didier Le Botlan
[not found] ` <3AFCFB23.CB503721@tsc.uc3m.es>
2001-05-12 15:28 ` Miles Egan [this message]
2001-05-12 15:35 ` [Caml-list] recursive variants Sven LUTHER
2001-05-12 21:49 ` Miles Egan
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=20010512082805.B50306@caddr.com \
--to=miles@caddr.com \
--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