Programs: Compilation Theory
The Compilation Theory course involved writing simple scanners, parsers and interpreters, mainly using Lex/Flex (scanner generator) and Bison/Yacc (parser generator).
- Lab 1: a Lex scanner analysing tcpdump logs
- lab1.l (1.5 KB)
- Lab 2: a simple HTML parser in Lex+Yacc
- lab2.l (2.5 KB)
- lab2.y (4.1 KB)
- compil-lab2-html.zip (6 KB) - all files (code + tests + makefile)
- Lab 3: a parser which analyzes a tree of letters
- lab3.l (269 B)
- lab3.y (1.6 KB)
- lab3.h (98 B)
- compil-lab3-tree.zip (93.4 KB) - all files (code + tests + makefile)
- Lab 4: an interpreter for a simple C-like language
- lab4.l (1.6 KB)
- lab4.y (15.4 KB)
- compil-lab4-interpreter.zip (87.8 KB) - all files (code + tests + makefile)
- Everything: compil-all.zip (190.4 KB)