Compiler Construction: Fundamentals and Applications
English | 2025 | ISBN: 3031848128 | 260 Pages | PDF (True) | 7 MB
English | 2025 | ISBN: 3031848128 | 260 Pages | PDF (True) | 7 MB
This textbook covers the fundamentals of compiler construction, from lexical analysis and syntax analysis to semantic processing and code generation. As a running example, a compiler for a simple Java-like programming language (MicroJava) is described and developed. It generates executable bytecode similar to Java bytecode. Other topics include the description of translation processes using attributed grammars and the use of a compiler generator to automatically generate the core parts of a compiler. For syntax analysis, the book concentrates on top-down parsing using recursive descent, but also describes bottom-up parsing. All code examples are presented in Java.