Delegating Compiler Objects - An Object-Oriented Approach to Crafting Compilers
| Document type: | Researchreports |
|---|---|
| Full text: | |
| Author(s): | Jan Bosch |
| Title: | Delegating Compiler Objects - An Object-Oriented Approach to Crafting Compilers |
| Series: | Research Report |
| Year: | 1995 |
| Issue: | 10 |
| ISSN: | 1103-1581 |
| Organization: | Blekinge Institute of Technology |
| Department: | Dept. of Computer Science and Business Administration (Institutionen för datavetenskap och ekonomi) Dept. of Computer Science and Business Administration S-372 25 Ronneby +46 455 780 00 http://www.ide.hk-r.se/ |
| Authors e-mail: | Jan.Bosch@ide.hk-r.se |
| Language: | English |
| Abstract: | Conventional compilers often are large entities that are highly complex, difficult to maintain and hard to reuse. In this article it is argued that this is due to the inherently functional approach to compiler construction. An alternative approach to compiler construction is proposed, based on object-oriented principles, which solves (or at least lessens) the problems of compiler construction. The approach is based on delegating compiler objects (DCOs) that provide a structural decomposition of compilers in addition to the conventional functional decomposition. The DCO approach makes use of the parser delegation and lexer delegation techniques, that provide reuse and modularisation of syntactical, respectively, lexical specifications. |
| Subject: | Software Engineering\General |
| Keywords: | compiler techniques, reuse |
| URN: | urn:nbn:se:bth-00028 |












