DocumentCode
747452
Title
A General-Purpose Macro Processor as a Poor Man´s Compiler-Compiler
Author
Tanenbaum, Andrew S.
Author_Institution
Vrije Universiteit
Issue
2
fYear
1976
fDate
6/1/1976 12:00:00 AM
Firstpage
121
Lastpage
125
Abstract
A method for quickly producing compilers for high level languages is described. The technique consists of feeding a description of the language to be translated to a general-purpose macro processor. Used in this way, the macro processor functions as a compiler-compiler, providing automatic parsing, lexical scanning, symbol table operations, and handling of syntactic errors. A complete syntactic and semantic description of a WHILE statement (except for Boolean expression processing) is given in only seven lines, as an example. A system programming language implemented by this method is discussed in order to illustrate the main ideas. The compiler produced for this language is compared to other compilers produced by conventional methods.
Keywords
Compiler; compiler-compiler; implementation methodology; macro processor; systems programming language; Assembly; Computer languages; Control systems; Debugging; High level languages; Manufacturing; Operating systems; Production; Program processors; Writing; Compiler; compiler-compiler; implementation methodology; macro processor; systems programming language;
fLanguage
English
Journal_Title
Software Engineering, IEEE Transactions on
Publisher
ieee
ISSN
0098-5589
Type
jour
DOI
10.1109/TSE.1976.233539
Filename
1702350
Link To Document