Prev Up Next
Go backward to C.1 Introduction
Go up to C Concrete Syntax
Go forward to C.3 Disambiguation

C.2 Context-Free Syntax

The grammar in this section uses uppercase words for nonterminal symbols, allowing also hyphens. All other characters stand for themselves, with the following exceptions:

The following nonterminal symbols are for lexical syntax, and defined in Section C.4: WORDS, DOT-WORDS, NO-BRACKET-SIGNS, DIGIT, DIGITS, NUMBER, QUOTED-CHAR, URL, and PATH. Lexical analysis for CASL is generally independent of the context-free parsing (apart from the recognition of URL and PATH, which may appear in libraries but not within individual specifications).

Context-free parsing of CASL specifications according to the grammar in this section yields a parse tree where terms and formulae occurring in axioms and definitions have been grouped with respect to explicit parentheses and brackets, but where the intended applicative structure has not yet been recognized. A further phase of mixfix grouping analysis is needed, dependent on the symbols declared in the specification and parsing annotations, before the parse tree can be mapped to a complete abstract syntax tree.

  • C.2.1 Basic Specifications with Subsorts
  • C.2.2 Structured Specifications
  • C.2.3 Architectural Specifications
  • C.2.4 Specification Libraries

  • CoFI Document: CASL/Summary -- Version: 1.0 -- 22 July 1999.
    Comments to cofi-language@brics.dk

    Prev Up Next