CSCI 412: Compiler Design
CSCI 412 Compiler Design Three Credit Hours
Prerequisite: CSCI 223 and CSCI 305
This course explores the basic principles, algorithms, data structures, and tools involved in the design and construction of compilers. Topics include formal grammars, lexical analysis, parsing algorithms, semantic analysis, error recovery, code generation, and optimization. Each student will be required to complete a substantial programming project, the implementation of a compiler for a small programming language.
- Context-free grammars
- Lexical Analysis (Scanning)
- Syntax Analysis (Parsing)
- Abstract Syntax Trees
- Constraint Analysis
- Error Recovery
- Run-time Organization
- Code Generation
Upon successful completion of this course, a student will be able to
- Understand the formalisms and techniques used in the specification of programming languages (regular expressions, context-free grammars, contextual constraints, etc.)
- Analyze context-free grammars to compute first and follow sets
- Describe the basic structure of a compiler in terms of its functional components (lexical analysis, syntax analysis, semantic analysis, error handling/recovery, code generation, and optimization)
- Design, implement, and test a compiler for a small programming language.
Instructor-supplied handouts and slides
Every two or three years as needed.