This is an old revision of the document!
Linguaggi e Compilatori
News
- Un corso simile era attivato alla Laurea Magistrale in Computer Science fino all'anno accademico 2019/2020. La pagina di tale corso è disponibile al seguente link.
- 29 Settembre 2020: Il corso verrà tenuto nel secondo semestre.
Informazioni Generali
Docente:
ESSE3 Link
Orario:
- Il corso è al secondo semestre: 1 Marzo 2021 - 11 Giugno 2021.
Stanza Webex
Ricevimento:
- Via Webex o in presenza previo appuntamento con il docente via email.
Sigla Ufficiale:
- La sigla ufficiale del corso è LC2021
Obiettivi del Corso
Si veda la Descrizione ESSE3
Contenuti del Corso
Si veda la Descrizione ESSE3
Materiale
Libri di Testo
- Alfred V. Aho, Monica S. Lam, Ravi Sethi and Jeffrey D. Ullman, Compilatori. Principi, tecniche e strumenti. Seconda Edizione, Pearson, 2009.
- Terence Parr The Definitive ANTLR4 Reference, The Pragmatic Programmers, 2012.
Slides
Le slide seguenti sono in inglese, saranno incrementalmente tradotte in italiano:
Esercizi con Soluzioni
Anche i seguenti esercizi sono in inglese e verranno incrementalmente tradotti in italiano.
Analisi Lessicale:
Analisi Sintattica:
Analisi Semantica:
Esempi di prove scritte passate con soluzione (in inglese)
Progetto
Progetto da inviare il giorno precedente delle prove parziali ESSE3 denominate “LC2021 APPELLO X - Consegna Progetto” in ogni appello X:
- La descrizione del progetto da realizzare tramite il tool ANTLR4 sarà disponibile durante lo svolgimento del corso.
Esami
Date Esami A.A. 2020/2021
Per l'iscrizione alle prove parziali, sia scritte che per consegna del progetto, e per la registrazione del voto finale si consulti il Portale ESSE3 previo login.
Modalità di Esame
The exam consists of a written test, containing open-answer questions, together with one project, realised with the ANTLR tool (see section “Projects” above). The Written Test and the Project are two independent Partial Exams (see the exam sessions in the ESSE3 career system) and can be passed in different exam sessions. The final grade, which is the average of the grades of the two Partial Exams, can be obtained and registered only if both the Partial Exams have been passed with a grade of at least 18/30.
Registration for the written tests must be done using the Student Career System ESSE3 here. Please note that the registration deadline is usually 3 working days before the written test date. This course is not mandatory for any MSc curriculum, therefore students will not be able to register for the written test until they communicate to the Secretary Office (Tiziana Jajani c/o Student Secretary Office - Opening Hours) their choice to attend to this course, code [ST1184] COMPILERS. During the exercise sessions throughout the course samples of the written test questions will be presented with solutions. During the written test students can consult a hand-written A4 paper of their production for reference.
Instructions for Sending Projects
Students must create a folder in Google Drive, using the Google account associated to their email name.surname@studenti.unicam.it
The folder must contain all the files relative to the project and a written report, in English, which describes all the phases of the developing of the project. The use of screenshots is encouraged to show, within the report, the runs and the results of the project.
The folder must be named
CMP1920-Project-N-APP-X-Surname-Name
where N is the number of the realised project (according to the section “Projects” above) and X is the number of the exam session (Appello) as specified for each date of the written test above.
The folder must be shared (using Google Drive facilities) with luca.tesei@unicam.it and andrea.polini@unicam.it by 11.59pm of the day before the written test scheduled for the selected session X.
Students that send the project must also register to the Partial Exam “CMP1920 Sess. XXX - Project Delivery” in ESSE3, specified for each exam session.
Exam Results
- The results will be communicated through this site or by email (depending on the number of students).
- Contextually to the communication of the results, students will be invited to accept or reject the evaluation.
- A positive evaluation (>=18/30) of each Partial Exam (Written Test and Project) remains valid for one year or until the student retries the Partial Exam.
- If both grades (Written Test and Project) are accepted, the final grade will be registered in ESSE3.