CSE 474/574
CSE 148 CSE 151 CSE 153 CSE 163 CSE 174 CSE 201 CSE 202 CSE 212 CSE 243 CSE 251 CSE 252 CSE 253 CSE 262 CSE 271 CSE 273 CSE 274 CSE 276 CSE 278 CSE 301 CSE 302 CSE 372 CSE 374 CSE 381 CSE 382 CSE 383 CSE 385 CSE 386 CSE 389 CSE 401/501 CSE 411/511 CSE 432/532 CSE 433/533 CSE 434/534 CSE 443/543 CSE 444/544 CSE 448 CSE 449 CSE 451/551 CSE 465/565 CSE 466/566 CSE 467 CSE 470 CSE 470A CSE 470G CSE 470K CSE 473/573 CSE 474/574 CSE 478/578 CSE 480 CSE 484/584 CSE 485/585 CSE 486/586 CSE 488/588 CSE 489/589 CSE 491 CSE 617 CSE 618 CSE 620 CSE 600 CSE 601 CSE 602 CSE 610 CSE 609 CSE 621 CSE 616 CSE 615 CSE 627 CSE 631 CSE 648 CSE 650 CSE 664 CSE 667 CSE 671 CSE 690 CSE 700
CSE474/574 - Compiler Design
Catalog description:
Examination of the nature of programming languages and programs which implement them. Compiler and interpreter design and implementation techniques. Review of grammars and languages (context free, context sensitive, regular). Design of interactive interfaces. Parsing of context free languages. Lexical analysis. Semantic analysis and code optimization.
Prerequisite:
CSE 274
Required topics (approximate weeks allocated):
- Overview of the translation process (.5)
- Formal notations (1)
- review of regular expressions
- review of formal grammars
- Compiler tools (1.5)
- currently available tools (e.g., lex and yacc)
- Lexical analysis (2)
- regular expression
- automata
- tokens
- Syntax analysis (3)
- parsers
- context-free grammars
- top-down parsing
- bottom-up parsing
- LL(1) grammars and parsing
- LR grammars and parsing
- parser generators
- Semantic processing (3)
- syntax-directed translation
- symbol tables
- type checking
- type systems
- type equivalence
- type conversions
- run-time environments
- attribute grammars
- Code optimization (1)
- Code generation (1)
- Compiler project (1)
- Exams/Review (1)
Learning Outcomes:
- Create lexers/scanners for moderately complex computer languages
- Explain and demonstrate the use of regular expressions for lexing/scanning
- Explain and demonstrate the use of common compiler tools for creating lexers/scanners (e.g. Lex, Flex)
- Create parsers for moderately complex computer languages
- Explain and demonstrate the use of recursive descent to parse a program
- Explain and demonstrate the use of common compiler tools for creating parsers (e.g. Yacc, Bison)
- Explain the difference between parse trees and abstract syntax trees, and create them by hand
- Generate executable code from an abstract syntax tree, both programmatically and by hand
- Create a complete compiler for a moderately complex computer language
- Explain some elementary compiler code optimization techniques
- (Graduate students only) Demonstrate higher analytic application through independent implementation of a non-trivial programming language feature in a compiler that they have created
Contact
Department of Computer Science and Software Engineering
- McVey Data Science Building, 262 105 Tallawanda Road Oxford, OH 45056
- 513-529-0340
- cse@miamioh.edu