Prev Up Next
Go backward to 1 SGML
Go up to Top
Go forward to 3 Illustrative Examples

2 CASL Interchange Format

Quoting from the CASL Tools Summary [Too97]:

Use: for exchanging parsed CASL specifications or units (i.e. incomplete specifications).

Informal description: An interchange format defines a portable representation of CASL, allowing CASL documents to be transmitted between different products or machines. This is a textual representation of Abstract Syntax Trees. The interchange format should support attributes to encode layout information and other information which is not considered to be part of the structure of a CASL specification. It should support also the possibility to be dynamically enriched by new attributes. The proposed format is SGML text with some indexing method.

It would be straightforward to provide an SGML document type definition (DTD) corresponding exactly to the abstract syntax of CASL [LD97], with a markup tag for each constructor of the abstract syntax, e.g., a total-function-type construct would be marked up in the Interchange Format as

<total-fun-type>...</total-fun-type>
where the ... provides the marked-up argument and result sorts. If desired, the markup could be minimized, so that various opening and closing tags may be left implicit when determined by the context, e.g., </total-fun-type> could be implied by </fun-decl>. Clsoing tags may in any case be abbreviated to </>.

Less clear is how best to represent comments, annotations, and layout:

  • 2.1 Comments
  • 2.2 Annotations
  • 2.3 Layout

  • CoFI Note: T-4 --DRAFT-- 8 October 1997.
    Comments to pdmosses@brics.dk

    Prev Up Next