/mini_compiler

Mini Compiler - Lexical Analysis, Parsing Tables, Symbol Tables and Interpreters

Primary LanguagePython

Mini Compiler for simple arithmetic operations.

Mini Compiler - Lexical Analysis, Parsing Tables, Symbol Tables and Interpreters

Workflow:

Step 1 Step 2 Step 3 Step 4 Step 5
Input String 'Lexical Analysis' 'Parse tokens' 'Interpret' 'Show output'

Usage

  • Clone the repository into your local machine git clone https://github.com/neerajp99/mini_compiler.git

  • Get inside the root directory of the repository in the local machine. cd ~/link_to_the directory/mini_compiler

  • Install the requirements by running the setup file, pip install -e ./

  • Start the virtual environment and source it so that python runs the file provided in your current shell, not in a subshell. source venv/bin/activate

  • Run the program. python3 src/main.py