LANGUAGES,INTERPRETERS AND COMPILERS
cod. 1009064

Academic year 2024/25
1° year of course - First semester
Professor
Enea ZAFFANELLA
Academic discipline
Informatica (INF/01)
Field
Discipline informatiche
Type of training activity
Characterising
72 hours
of face-to-face activities
9 credits
hub:
course unit
in ITALIAN

Learning objectives

Students will be introduced to the main problems related to the development of a compiler for a programming language. For each of these problems, the corresponding theoretical results, tools and techniques leading to an algorithmic solutions will be highlighted.
Knowledge and understanding.
The classical subdivision of the compiling process in its phases will lead to a better understanding of the corresponding theoretical results and implementation techniques.
Applying knowledge and understanding.
Compiler principles and techniques have applications beyond the filed of formal language translation, spanning to natural language processing as well as the analysis, checking and transformation of (semi-) structured documents.
Making judgements.
The complexity of the considered problem naturally leads to a comparison of different solution approaches and tools; students are stimulated to a critical comparison of the many design and implementation alternatives.
Communication skills.
The preparation of a seminar to deepen one of the topics of the course allows students to refine their communication skills, both in written form and orally.
Learning skills.
The study of a problem as complex as formal language translation is an excellent example of a synergy between important theoretical results and sophisticated algorithmic techniques.

Prerequisites

It is assumed that the students have a good knowledge of at least an (imperative) programming language, as well as of the main algorithmic techniques for the design and development of efficient data structures.

Course unit content

Introduction: interpreters and compilers
Lexical analysis
Syntax analysis (parsing)
Static semantics
Intermediate representations (IR)
Analysis and optimization of IR

Full programme

Bibliography

Keith Cooper, Linda Torczon
Engineering a Compiler, 2nd Edition
Morgan Kaufmann, 2011

Teaching methods

Lectures and guided exercises

Assessment methods and criteria

Learning outcome.
Students will need to show knowledge of the components of a compiler, the underlying theoretical results and implementation techniques, as well as some tools for the automatic generation of scanners and parsers for programming languages.
Exam: at least 21 days before the exam, each student will have assigned a topic among those discussed during the course, as well as additional didactic material to prepare a seminar. The oral exam will consist in the presentation of the seminar (max 15 minutes) followed by a few open questions, both on the seminar topic and on the other topics discussed during the lectures.

Other information

2030 agenda goals for sustainable development

- - -

Contacts

Toll-free number

800 904 084

Student registry office

E. segreteria.scienze@unipr.it
T. 0521 90 5116

Quality assurance office

Education manager
dr. Claudia Buga
T. 0521 90 2842
Office e-mail: smfi.didattica@unipr.it
Manager e-mail: claudia.buga@unipr.it

President of the degree course

Prof. Alessandro Dal Palù
E. alessandro.dalpalu@unipr.it

Faculty advisor

Prof. Vincenzo Arceri
E. vincenzo.arceri@unipr.it

Career guidance delegate

Prof. Roberto Alfieri
E. roberto.alfieri@unipr.it

Tutor Professors

Prof. Enea Zaffanella
E. enea.zaffanella@unipr.it

Prof. Alessandro Dal Palù
E. alessandro.dalpalu@unipr.it

Erasmus delegates

Prof. Roberto Bagnara
E. roberto.bagnara@unipr.it
Student tutor dr. Anna Macaluso
E. anna.macaluso@studenti.unipr.it

Quality assurance manager

Prof. Enea Zaffanella
E. enea.zaffanella@unipr.it

Internships

Prof. Roberto Alfieri
E. roberto.alfieri@unipr.it

Student representatives: 
Greta Dolcetti 
Massimo Frati
Davide Tarpini