1. Accueil
  2. EN
  3. Studying at ULB
  4. Find your course
  5. UE
INFO-F403

Introduction to language theory and compiling

academic year
2024-2025

Course teacher(s)

Gilles GEERAERTS (Coordinator)

ECTS credits

5

Language(s) of instruction

english

Course content

Formal Langages and grammars. Chomsky classification. Regular expressions. Automata (finite pushdown, Turing machine). Compiler, lexical analyser, parser. Descending and ascending parsers: LL(k), LR(k), LALR(k). Semantic analysis, typing systems and code generation.

Objectives (and/or specific learning outcomes)

The learning outcomes are:

  1. to master basic language theory (language, automata, grammars, non-determinism, associated algorithms)
  2. to be able to explain those notions in an intuitive manner, but also using the adequate mathematical formalism
  3. to master the basics of compilers
  4. to understand and to be able to justify Chomsky hierarchy
  5. to master the theory behind top-down and bottom-up parsers (including LL and LR grammars)
  6. to be able to apply all the theoretical notions by specifying and writing a small compiler that interfaces with the internal language of LLVM

Prerequisites and Corequisites

Cours ayant celui-ci comme co-requis

Teaching methods and learning activities

The learning activities are:
- Ex-cathedra lectures
- practicals
- a project that consists in 3 parts

References, bibliography, and recommended reading

  • J. E. Hopcroft, R. Motwani, and J. D. Ullman ; Introduction to Automata Theory, Languages, and Computation, Second Edition, Addison-Wesley, New York, 2001.
  • Alfred V. Aho, Ravi Sethi, and Jeffrey D. Ullman, Compilers : Principles, Techniques and Tools", Addison-Wesley, 1986
  • John R. Levine, Tony Mason, Davy Brown. Lex et YACC, O'Reilly ed, 1992.

Course notes

  • Podcast
  • Université virtuelle
  • Syllabus

Other information

Contacts

Prof. Gilles Geeraerts

Campus

Plaine

Evaluation

Method(s) of evaluation

  • written examination
  • Project

written examination

Project

The exam is normally a written exam, testing the students' skills regarding the "language theory" part of the course (the "compiler" part is tested  by the project). If the sanitary situation does not allow a written exam on site in January or August, it will be moved online (and maybe replaced by an oral exam).

Mark calculation method (including weighting of intermediary marks)

Project: 8 points out of 20
Exam: 12 points out of 20

Language(s) of evaluation

  • english

Programmes