Prev Up Next
Go backward to 8.1 Unit Declarations and Definitions
Go up to 8 Architectural Constructs
Go forward to 8.3 Unit Expressions

8.2 Unit Specifications

  UNIT-SPEC-DEFN   ::= unit-spec-defn UNIT-SPEC-NAME UNIT-SPEC
  UNIT-SPEC        ::= UNIT-SPEC-NAME | UNIT-TYPE | ARCH-SPEC

A unit specification definition UNIT-SPEC-DEFN is written:

unit spec
USN =
USP
end
where the terminating `end' keyword is optional.

It provides a name USN for a unit specification US, which is either a unit type, or the name of another unit specification, or an architectural specification (either a reference to the defined name of architectural specification, or an anonymous architectural specification).

It defines the name USN to refer to the unit specification USP, extending the global environment (which must not already include a definition for USN). The local environment given to USP is empty.

  UNIT-SPEC-NAME   ::= SIMPLE-ID

An unit specification name UNIT-SPEC-NAME is normally displayed in a SMALL-CAPS font, and input in mixed upper and lower case.

A reference in a unit specification UNIT-SPEC to a unit specification named USN is simply written as the name itself. It refers to the the current global environment, and is well-formed only when the global environment includes a unit specification definition for USN. The enclosing definition then merely introduces a synonym for a previously-defined unit specification.

  • 8.2.1 Unit Types
  • 8.2.2 Architectural Specifications

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

    Prev Up Next