
Syntax Directed Program Modularization
Author(s) -
Bent Bruun Kristensen,
Ole Lehrmann Madsen,
Birger Møller-Pedersen,
Kristen Nygaard
Publication year - 1982
Publication title -
daimi pb
Language(s) - English
Resource type - Journals
eISSN - 2245-9316
pISSN - 0105-8517
DOI - 10.7146/dpb.v11i155.7429
Subject(s) - modular programming , programming language , context (archaeology) , computer science , syntax , terminal and nonterminal symbols , grammar , parsing , linguistics , natural language processing , philosophy , biology , paleontology
The intent of this paper is to illustrate the following general ideas: -- Use of the context free grammar of a programming language as an integrated part of its programming system. -- Reconsideration of the border line between language and system. -- Systematic modularization of programs for the various translation phases. The specific ideas presented in this paper are language independent methods for handling: -- Modularization of programs. -- Separate translation in the form of context sensitive parsing (type checking) of modules. -- Protection of part of a module, e.g. protection of the representation of an abstract data type. The mechanism for modularization is unusual as it is based on the context-free syntax of the language. A module may be a sentential form generated by any nonterminal of the grammar.