Skip to content

Compiler Design Project, Compiler with 4 stages i.e lexer, parser, intermediate code generator and optimizations on the icg with AST generation, basically to handle python code structures with foor loops

Notifications You must be signed in to change notification settings

VamsiUdaykumar/MyPythonCompiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyPythonCompiler

As a part of my Compiler Design Project, I have created a python compiler from scratch using the same Grammar Rules for Python. This Compiler is designed only for python code structures with loops and uses PLY tools and is written in Python itself.

There are 4 stages of this project

  1. THE LEXER (inclusive of ignoring singluar and multiple comments)
  2. PARSER (inclusive of identation handling)
  3. INTERMEDIATE CODE GENERATION AND BUILDING AN ABSTRACT SYNTAX TREE
  4. CODE OPTIMIZATION

THE MAIN CHALLENGE WAS TO DEAL WITH INDENTATION AS FAR THE LANGUAGE PYTHON IS CONCERNED

About

Compiler Design Project, Compiler with 4 stages i.e lexer, parser, intermediate code generator and optimizations on the icg with AST generation, basically to handle python code structures with foor loops

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages