Prev Up Next
Go backward to D Display Format
Go up to Top
Go forward to F Finalization

E Examples

This appendix is from the original documents presenting the CASL concrete syntax design proposal [BCKB+98a].

It illustrates the concrete syntax of basic and structured specifications. The examples are shown only in the display format, but the intended input syntax should in general be easy to deduce--in fact, it should be the same text as displayed when browsing the HTML-formatted version of this document (modulo display annotations). The input syntax of the examples is also available by FTP.

Note that the mathematical symbols for set membership and union, displayed in the LaTeX formatting of Sig1 and Sig2, are also to be produced by display annotations, and the input symbol for the set membership predicate should not be `in', since that is the keyword used for subsort membership formulae.

N.B. The examples are intended merely to illustrate various styles of using the CASL concrete syntax, and to give an impression of the display format. Some of them could be expressed much more elegantly and concisely in other ways in CASL!

Examples involving views and architectural specifications are to be added.

  • E.1 Specifications from the Bremen Proposal
  • E.1.1 PO
  • E.1.2 MONOID
  • E.1.3 NAT
  • E.1.4 SIG1
  • E.1.5 SIG2
  • E.2 Specifications from the Paris Proposal
  • E.2.1 FILE
  • E.2.2 PATH
  • E.2.3 LIST_WITH_ORDER
  • E.2.4 COMPOUND_SYMBOLS_ARE_NICE
  • E.2.5 LIST

  • CoFI Document: CASL/Summary --Version 0.99-- 21 April 1998.
    Comments to cofi-language@brics.dk

    Prev Up Next