Compilers -- (2009/2010)


This page contains the material relevant to Compilers (academic Year: 2009/10 -- Second Semester) module including lecture handouts and practical material. All enquiries regarding the module should be addressed to Dr. Alessandro Artale.
The course has also a practical aspect with Lab exercises concerning the construction of a compiler for a sub-language of the "C" programming language.


SYLLABUS
Course Syllabus

LECTURES
1. Introduction to Compilers
2. Formal Languages Theory (a refresh from Formal Languages Course)
3. Lexical Analysis
4.1. Syntactic Analysis---Part 1.

TUTORIALS for the LAB
1. Introduction to C
2. Introduction to LEX
3. Introduction to YACC
3. Language Requiremts for the Final Project

LABS Exercises
1.1 Exercise: Lexical analizer
1.2 Lexical analizer code
2.1 Calculator: LEX, YACC and Makefile
2.2 Calculator with file input LEX, YACC and Makefile
3. Lecture 4: Exercice 1 YACC
4. Lecture 4: Exercice 2 YACC
5. Programming Languages Resources
4.1 Past Exam Paper
4.2 Past Exam Paper

PROJECT -- 30% of the Final Mark
Students will be involved in a project concerning the development of a Compiler.