HOME | ENGLISH | IMPRESSUM | KIT

Konferenzartikel: Unification in Many-Sorted Algebras as a Device for Incremental Semantic Analysis

[henhapl86popl]Wolfgang Henhapl, Gregor Snelting, Unification in Many-Sorted Algebras as a Device for Incremental Semantic Analysis, 13th ACM Symposium on Principles of Programming Languages, pp. 229--235, St. Petersburg, 1986.

Zusammenfassung

Language-specific editors for typed programming languages must contain a subsystem for semantic analysis in order to guarantee correctness of programs with respect to the context conditions of the language. As programs are usually incomplete during development, the semantic analysis must be able to cope with missing context information, e. g. incomplete variable declarations or calls to procedures imported from still missing modules. In this paper we present an algorithm for incremental semantic analysis, which guarantees immediate detection of semantic errors even in arbitrary incomplete program fragments. The algorithm is generated from the language's context conditions, which are described by inference rules. During editing, these rules are evaluated using a unification algorithm for many-sorted algebras with semi-lattice ordered subsorts and non-empty equational theories. The method has been implemented as part of the PSG system, which generates interactive programming environments from formal language definitions, and has been successfully used to generate an incremental semantic analysis for PASCAL and MODULA-2.

Download

  [DOI]

BibTeX

Institutsinterne Autoren

Lehrstuhlinhaber
Prof. Gregor Snelting