Welcome to the Scanner & parser project, In the first phase, called the Scanner, we created a tool that reads TINY language code and makes a list of tokens, each with a value and type, saving them to a file.
Now, in the second phase, called the Parser, we've built on the Scanner's work. The Parser goes through the tokens and puts them together to create a syntax tree, showing the structure of the TINY language code.
The Scanner is a crucial component that reads the source code, performing lexical analysis to break it into tokens—the fundamental units of the programming language. This phase involves reading the source code character by character, identifying tokens using regular expressions, and creating corresponding entries in the symbol table for each token. The tokens are then passed to the parser for further processing.
- Clone the repository.
- Provide your TINY language snippet in a file.
- Run the scanner program.
- Retrieve the output file containing the list of tokens. Additionally, the system now supports parsing capabilities, allowing you to inspect and visualize the syntax tree.
You can download the executable file from this link.
-
Member 1
- Name: Abdelrahman Ali Mohamed
- ID Code: 1900913
-
Member 2
- Name: Mostafa Mahmoud Ali
- ID Code: 1900034
-
Member 3
- Name: Habiba Ahmed Alaa Eldin Mohamed
- ID Code: 1900839
-
Member 4
- Name: Mai Esmail Gamal
- ID Code: 1900171
-
Member 5
- Name: Esraa Amr Abdelmoneam
- ID Code: 1900061
-
Member 6
- Name: Maram Ahmed Hussien
- ID Code: 1900050