Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] New polymorphic variant syntax
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Alain Frisch <frisch@c...>
Subject: Re: [Caml-list] New polymorphic variant syntax
On Wed, 21 Nov 2001, Patrick M Doane wrote:

> Having abbreviations like 'inline' works really well. I'm curious to know
> if there is a good way to represent the following information:
>
>    <!ELEMENT FORM - - (%flow;)+ -(FORM)>
>
> This states that a FORM element can have any flow object except for FORM
> (i.e. nesting is not allowed).
>
> How difficult would it be to extend the polymorphic variant syntax to list
> tags that should not be included in the conjuction? Perhaps this already
> possible? Of course we can always revert to simply listing the variants.

The type [> `Form of t] where t is an abstract type, for instance
should be ok for this, no ?


-- 
  Alain

-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr