Skip to content

Dpbm/python-c-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple c compiler made in python

tests

This is a college project that I've done with some friends of mine. Feel free to add things, messy around, and test as you want. If you find some improvements or bugs, please, open an Issue and then us know what's wrong.

Run

To run the project you'll need:

  • python3 installed
  • a c source code file

after that, just run:

python3 compiler.py your_file.c

Tests

To execute the tests, you'll need:

  • python3
  • python unittest
  • make (optional)

with all dependencies installed, run:

make test

or 

python3 -m unittest tests/*.py