Lund University →
Faculty of Engineering →
Department of Computer Science
Week by week 2024/2025
Links will work after the corresponding lecture.
Before that, they may give a Not Found or 404 error.
Meanwhile, if you would like to take a look at last year's slides, etc.,
they are available here.
Note that the information below is preliminary and might be updated.
Go to:
Week 1,
Week 2,
Week 3,
Week 4,
Week 5,
Week 6,
Week 7,
Week 8,
Exam,
Week 1 (Sep 2 - Sep 6)
Register formally in LADOK
Sign up on Moodle
Lecture 1: Introduction
- The first lecture is Mon 15:15-17:00. Sep 2, 2024 in room MA:5 in the house "Matte-annexet".
- Confirm your seat in the course at lecture 1.
- Read the Course Program
- Slides L1
- Moodle Quiz Q1
- Appel Book: Ch 1-1.2 (See the course program for how to access the on-line book)
Sign up for lab sessions
Lecture 2: Regular Expressions, Scanning. Tuesday 13-15, E:B
Get a git repo for the assignments
See information about this in Moodle
Assignment 0. Java, Unix, Gradle, and Git.
- Do this assignment on your own. Includes basic skills you need in the other assignments.
- Downloads: A0.pdf, A0-JavaGradleProject.zip.
- Estimated typical effort: 1-4 hours, depending on your current proficiency.
Lecture 3: Context-free grammars. Recursive-descent parsing. Thursday, Sept 1, E:B
- Slides L3
- Moodle Quiz Q3
- Appel Book: Parts of Ch 3 (38-47). (Intro to Parsing 3, Context-free grammars 3.1, intro to Predictive parsing 3.2.)
- Appel Exercises: 3.1-3.2. (No solutions provided)
Assignment 1. Scanning and simple parsing.
- Deadline: the Lab session week 2.
- Covers: Lectures 2 and 3.
- Downloads: A1.pdf, A1-CalcParse.zip.
- Estimated typical effort: 5 hours.
Week 2
Lecture 4: Ambiguities. LL problems. Monday.
Lecture 5: LL parsing. Abstract Syntax Trees. Tuesday.
Lab sessions. Wednesday and Thursday
- For approving and getting help with Assignment 1.
- Go to the session you signed up for in the SAM system.
- All sessions are in the E:Jupiter lab room in the basement of the E-house.
Assignment 2. LR parsing and AST building
Week 3
Lecture 6: LR parsing. Visitors.
Lecture 7: Aspects. Attribute Grammars.
Lab sessions.
- For approving and getting help with Assignment 2.
Assignment 3. Visitors, Aspects, and Attribute Grammars.
Week 4
Lecture 8: Reference attributes, Semantic Analysis.
- Slides L8
- Moodle Quiz Q8
- Appel Book: Ch 5 (103-115). Semantic Analysis. However, you may skip the section on EFFICIENT FUNCTIONAL SYMBOL TABLES (107-108).
- An Introductory Tutorial on JastAdd Attribute Grammars, Springer, LNCS 6491, 2011, preprint, published version, sections 1-5. (To access the published version, you need to be on the University network. But the difference is only typographic.)
- Exercises: Do exercises 3-4, 6-9, 14 in the above paper. There are solutions in the back of the paper, but try to solve the problems on your own before looking at them.
- Exercises: There are also exercises in the slides for this lecture.
Lecture 9: Circular attribute grammars. Interpreters.
Lab sessions.
- For approving and getting help with Assignment 3.
Assignment 4. Semantic analysis using reference attribute grammars.
Week 5
Lecture 10: Runtime Systems (Monday)
- Slides L10
- Moodle Quiz Q10
- Appel Book: Ch 6-6.1 on procedural run-time systems (116-126).
Focus on
Introduction, STACK FRAMES, THE
FRAME POINTER, REGISTERS, STATIC LINKS.
- Skim through HIGHER-ORDER
FUNCTIONS, PARAMETER PASSING, RETURN ADDRESSES.
Skip FRAME-RESIDENT VARIABLES
Tuesday: No lecture
Optional extra assignment on JastAdd Bridge
- With JastAdd Bridge, you can use your SimpliC compiler to get smart editing of SimpliC files in VS Code.
- If you would like to try it out, follow the instructions here.
Lab sessions.
- For approving and getting help with Assignment 4.
Assignment 5. Interpreter and static analysis
Week 6
Monday: No lecture (lecturer sick)
Lecture 11: Code generation. (Tuesday) Lecturer sick. Watch 2021 Youtube lecture instead.
Lab sessions.
- For approving and getting help with Assignment 5.
Extra catch-up lab session.
- Friday Oct 11, 9:00-11:00 in E:2116.
- For approving and getting help with Assignment 4.
Assignment 6. Code generation
Week 7
Lecture 12: Object-oriented languages, Runtime Optimization. (Monday)
Lecture 13: Course review before exam. (Tuesday)
Lab sessions.
- For approving and getting help with Assignment 6.
Extra catch-up lab session.
- Friday Oct 18, 9:30-11:30 in E:2116.
- For approving and getting help with Assignment 5.
Sign up for exam.
Sign up for the exam.
You will get an automatic email about this.
Week 8
Catch-up lab session.
- For approving Assignment 6.
- Tuesday, Oct 22, 13-15, in the E:Gamma lab room (E:2121) in the E house (on floor 2 - i.e., 1 floor up from the entry floor).
Study old exams
Exam
At the exam, you may use the following documents. Copies of them will be available at the exam. You do not need to bring your own.
You may also use a dictionary from English to your native language.
Regular exam
- Tuesday, October 29, 2024, 14:00-19:00. In the room "Gasque-salen" in the house "Kårhuset".
- You need to have finished all lab/assignments to be allowed to take the exam.
- You need to sign up for the exam in advance. You should have received an automatic email about this.
Retake of exam
- The retake exam will be held in the spring retake period in April 2025.