Compiler ConstructionA refreshing antidote to heavy theoretical tomes, this book is a concise, practical guide to modern compiler design and construction by an acknowledged master. Readers are taken step-by-step through each stage of compiler design, using the simple yet powerful method of recursive descent to create a compiler for Oberon-0, a subset of the author's Oberon language. The hands-on, pragmatic approach makes the book equally attractive for project-oriented courses in compiler design and for software engineers wishing to develop their skills in system software. A disk provided with the book gives full listings of the Oberon-0 compiler and associated tools. There is a bug in the installation of this disk, to correct please do the following:
and change it so that it reads readme.txt =$I, 9000,0,Information on Oberon, 0,0 |
Contents
Preface | 1 |
Regular Languages | 12 |
Attributed Grammars and Semantics | 27 |
Copyright | |
11 other sections not shown
Common terms and phrases
Algol 60 allocated architecture ARRAY assignment attribute attributed grammars BEGIN IF sym Boolean branch instructions code pattern consider Const construct context-free languages corresponding data structure data types denoted descriptor digit EBNF element END END END EnterKW(null error example EXCL(regs expression factor Figure find(obj formal FPSection Get(sym global variable ident identifier IdentList implementation INTEGER Item load(y loaded locblksize LONGINT LONGREAL mode module nonterminal symbol Oberon Oberon-0 compiler obj.class obj.type obj.val Object operand optimization OSG.Item OSG.Object OSS.Get(sym OSS.ident OSS.Mark parameter parser parsing pointer procedure call Procedure Declaration programming languages Put(BEQ RECORD recursive represented result RISC rparen rules scanner selector semicolon sequence SimpleExpression source text specified stack statement StatementSequence symbol file symbol table syntactic syntax analysis syntax tree term terminal symbols Texts.Read(R Texts.WriteInt(W Texts.WriteString(W top-down parsing x.mode x.type x.type.form