/Pinterpreter

A simple compiler made in python to parse a statement , made using Abstract Syntax Tree.

Primary LanguagePython

Pinterpreter

A simple compiler made in python to parse a statement , made using Abstract Syntax Tree.

Functionalities Provided

Can solve complex mathematical expressions following BODMAS property

How to use it

  1. First of all clone the repository
  2. Use python interpreter1.py , to run the code.
  3. Now you can enter statements to parse from.

How it works

  1. Created a Abstract Syntax Tree structure , to parse the input.
  2. Uses Compiler designing principles :
  • Lexical Analysis
  • Syntax Analysis
  • Semantic Analysis
  1. Language used : Python