Compiler Construction (FND3)

Spring term 2008

Exams & Assessments

General rules according to which we want to perform the assessments and the calculation of the final grade for fnd3 are here.

Assessments

All information about the assessment are given in FND3Assessment.pdf.

The assessments will take place at July 3rd 2008.

Sheets

Week Info Sheets
1 Introduction a first version
1 Introduction (slides) Slides (with a small formating fault)
2 A Brief Introduction to XML ABriefIntroXML.pdf
3-4 Lexical Analysis LexicalAnalysis.pdf
5 JFlex IntroJFlex.pdf
6 Introduction to Syntax Analysis IntroParsing.pdf
7 Predictive Parsing Mechanisms PredictiveParsing.pdf
8-9 Parsing Tricks - needed all the time ParsingTricks.pdf
10-11 LR Parsing Methods (Part 1) - especially LR(0) parser LRParsingMethodsPart1.pdf
11-12 LR Parsing Methods (Part 2) - especially LR(1) parser LRParsingMethodsPart2.pdf
12 Semantic Analysis SemanticAnalysis.pdf
13 Translation to (Intermediate) Code TranslationToIntermediateCode.pdf (complete)

Practical Tasks

Week Info Lab
1 Initial task (structured documents) CollectionsOfDocs.zip
2-3 Design your XML DTD (structured documents) DesignXMLDTD.pdf
4-6 Develop a lexer using an XML DTD Lexer.zip
7 Introduction to parsing mechanisms IntroParserExercise.pdf
8-9 Parsing tricks handling left recursions ParserExerciseLeftRecursion.pdf
10-11 Specify the parser by the Yacc grammar ParserSpecYacc.pdf
12-13 Implementation of modules for semantic analysis SemanticAnalysisSimpleXML.pdf
14 Instruction selection for XML InstructionSelectionXML.pdf
The End Guideline for putting it all together (many examples!) PuttingAllTogether.pdf

Note that practical tasks can be done in groups of two students (who can also be assessed together).

Assessments

Course Information

Course Book: Andrew W. Appel: Modern Compiler Implementation in Java.
Cambridge University Press, Cambridge 2002, 2nd edition. (ISBN 052182060 X)
(You should have copy of this book.)

If you have any questions concerning FND3, feel free and contact us

Jeu van Loon Julia Stoll