## vim: nowrap tabstop=2 shiftwidth=2 expandtab textwidth=100000 #acl All:read = Course Description = '''CSCI498 --- COMPILER DESIGN''': An introductory course to the design and construction of compilers. Topics include scanning (lexical analysis), context free grammars, recursive descent (top-down) parsing, LR (bottom up) parsing, syntax directed translation, syntax trees, expression trees, parse trees, intermediate representation, register allocation and target code generation. Students will construct their own tool chain for compiling a simple language, tracking the relevant course topics as they are covered. Computer Organization (CSCI341), Software Engineering (CSCI306) and Intro to Linux (CSCI274). = Learning Goals = The objectives of this course are to introduce students to theory and tools behind language compilers. Upon successful completion of this course, the student will have practiced and improved their ''coding, code review, communication and collaboration skills''; and be knowledgeable of: * The steps taken by most compilers to translate a program listing to either another language or target code for a machine. * The theory of lexical analysis, regular expressions, deterministic finite automata (DFAs), non-deterministic finite automata (NFAs), and how to use scanner generators (eg `flex`). * The fundamental principles of context free grammars as well as their associated attributes and properties. * Constructs for expressing operator precedence and associativity in context free grammars, as well as how language ambiguities are detected and worked around by modern compiler tools. * The theory and implementation of top-down and bottom up parsing, the generation of parse trees, and their translation to abstract syntax trees (ASTs). * The evaluation of program statements at the CPU op-code and register level.