[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Typol Operator
- Subject: Re: Typol Operator
- From: td@babar.inria.fr (Thierry Despeyroux)
- Date: 4 May 92 14:57:43 GMT
In article <18670@sophia.inria.fr>, kuehne@pi.informatik.th-darmstadt.de (Thomas Kuehne) writes:
|> I need an language operator exclusivly for semantic purposes.
|> It is irrelevant for the set of data that can be expressed with the language.
|> Therefore i do not want to include it in my METAL language definition.
|>
|> I tried to introduce it with the "define" construct of TYPOL.
|>
|> Unfortunatly it introduces a new PHYLUM (EVENT), that is differnt to my
|> aimed PHYLUM (MENU::EVENT). The "define" syntax does not allow to specify
|> the disambiguated PHYLUM (MENU::EVENT).
|>
|> Is there a possiblity to extend my existing language with an operator
|> without changing the original language definition.
There is no modular definition of languages in METAL.
The "define" of Typol only allows you to define (small)
languages that use types from other languages, but not
to extend a phylum.
However, I do not recommend to use "define" as there is
no corresponding centaur formalism.
So you will have to pollute your existing language or to
copy (a part of) it. If you look carefully at the Typol
definition, you will see that you can parse a complete
sequent (with schemes in it) in a judgement declaration,
and the error will only be detected at type-checking
only, just for this reason of lack of modularity.
Thierry
--
Send contributions to centaur@sophia.inria.fr. Registration and
administrative matters should be sent to centaur-request@sophia.inria.fr.
+---------------------------------------------------------------------------+
| Thierry Despeyroux | email: Thierry.Despeyroux@sophia.inria.fr |
| I.N.R.I.A. Sophia-Antipolis | phone: +33 93 65 77 07 fax: +33 93 65 77 66 |
+---------------------------------------------------------------------------+
- References:
- Typol Operator
- From: kuehne@pi.informatik.th-darmstadt.de (Thomas Kuehne)