Week 7 of compiler construction

Dear IN5380-student,

Thanks for this weeks lectures. We are now in the semantic analysis phase of the compiler. We were introduced to attribute grammars, which is a structured – yet very general and expressive – way of specifying semantic properties of a language.

I just merged a pull request in the compila-precode repo. The specification and tests were in disagreement about when to include the keyword in. If you have run into this and worked around it some other way then that is fine. Our mistakes should not lead to more work for you. If you haven't, then it is probably a good idea to use the updated tests. Thanks to Tobias for raising the issue and providing a fix.

Note that I'll start removing inactive students from Devilry soon, meaning that if you are not in a group, and have not left a comment on Devilry, then we consider you inactive and you will be removed.

See you next week,
- Lars

Published Mar. 5, 2026 9:23 AM - Last modified Mar. 5, 2026 9:23 AM