ISBN-13: 9786203910940 / Angielski / Miękka / 92 str.
A Practical Approach to Compiler Construction covers the basic principles of the subject in an accessible way. It presents the required background theory and shows how it will be applied to implement complete compilers. A step-by-step approach, based on a standard compiler structure is adopted, presenting up-to-date techniques and examples. Strategies and designs are described thoroughly to guide the reader in implementing a translator for a programing language. A simple high-level language, loosely based on C, is used to illustrate aspects of the compilation process. Code examples in C are included, alongside discussion and illustration of how this code may be extended to cover the compilation of more complex languages. Examples are also given of the utilization of the flex and bison compiler construction tools. Lexical and syntax analysis is covered in detail together with comprehensive coverage of semantic analysis, intermediate representations, optimisation and code generation. Introductory material on parallelisation is also included.