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
[Caml-list] Better option to read a file
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-03-17 (18:54)
From: Markus Mottl <markus@o...>
Subject: Re: [Caml-list] Better option to read a file
On Wed, 17 Mar 2004, Agustin Valverde Ramos wrote:
> I want to work with conjunctions and disjunctions of lists:
> 
>      | And of expr list
>      | Or of expr list
> 
> Is it hard/possible to modify  the rest of the code?

I suppose you prefer this representation, because you want to stratify
logical expressions.  The the other representation is otherwise easier
to handle.  It's possible and not too hard to make this extension (a
bit tedious though).

> > (note: the topmost expression also needs parenthesis!). E.g.:
> 
> Why? is it possible to release this restriction?

It's simpler this way.  You just need to add the parenthesis-free
expressions to the "main" nonterminal if you don't want this.

Regards,
Markus

-- 
Markus Mottl          http://www.oefai.at/~markus          markus@oefai.at

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners