Welcome to Group 6 repository for the CPT316 assignment on implementing the lexical and syntax analysis phases of a compiler.
- Clone the repository:
git clone https://github.com/ahdeanlau/CPT316_Assignment_1
. - Navigate to the source directory:
cd CPT316_Assignment_1
. - Run the program:
python parse_code.py
- Open the generated
syntax_tree.dot
file. - Copy the contents of the file.
- Paste the contents into the Graphviz Online Editor.
This project aims to:
- Provide hands-on experience in implementing the lexical and syntax analysis phases of a compiler.
- Understand the role of these phases in parsing source code and generating an abstract syntax tree (AST).
- Enhance our problem-solving and coding skills in building a functional compiler component.
- Document our implementation to make it clear and comprehensible for others.