Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

yektaKamane/Yet-Another-Python-Compiler

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yet Another Python Compiler

The front-end of a compiler that converts python code to Three-Address-Code(TAC).

Installation

To install Flex and Bison run the below commands in a terminal

sudo apt-get update
sudo apt-get install flex
sudo apt-get install bison

To Run

After installing Flex and Bison follow the below commands:

bison -d  parser.y
flex lexical.l
gcc lex.yy.c parser.tab.c -o compiler
./compiler < ./data/input/input1.txt | cat > ./data/output/output1.txt


Alternately, you can use the commands in the makefile. To build the program, execute the command below:

make all

To run the tests, execute the command:

make test

About

The front-end of a compiler that converts python code to Three-Address-Code(TAC)

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.