[2023/03/13]: Added slides of the first practice, and text of the first laboratory.
[2023/03/13]: Welcome to the Formal Languages and Compilers course
Calendar
[2023/03/23] from 17:30 to 19:00 (LABINF) → First laboratory (Group 2)
[2023/03/23] from 16:00 to 17:30 (LABINF) → First laboratory (Group 1)
[2023/03/23] from 14:30 to 16:00 (room 2C) → First classroom practice
[2023/03/22] from 21:00 to 22:30 (VC “Portale della Didattica”) → Live virtual classroom tutoring about tool installation (with assistance student)
Tools installation
Installation in your PC
Install Windows: How to download and install Jflex, Java, and Cup in the Windows operating system Install Linux Bash: How to download, install and configure Jflex, Java, and Cup in the Ubuntu Linux operating system with bash shell Install macOS: How to download, install and configure Jflex, Java, and Cup in the macOS operating system
Slides (Practice in classroom)
Practice 1: practice1_1.pdf, practice1_2.pdf, practice1_6.pdf
Regular expressions and the scanner JFlex
Other material: Context dependent regular expressions, inclusive states and exclusive states in Jflex
Classroom example: exClass-1.zip.
To compile and execute type the following commands:
Laboratory 1:laboratory_1.pdf
Regular expression and the scanner JFlex
Before starting try to compile and to understand the following example: exClass-1.zip
Other tools like Jflex/Cup
Ply Examples: Laboratories solutions with Ply (i.e., scanner and parser in Python)
Ply: Mini guide about the use of the Ply scanner and parser
Flex Bison Examples: Laboratories solutions with Flex and Bison (i.e., scanner and parser in C)
Flex Bison: Mini guide about the use of the Flex scanner and the Bison parser