SKantar / CInterpreter

Small C interpreter written in Python from scratch. Project was written as a part of course Compiler Construction at The Faculty Of Computer Science.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CInterpreter

CInterpreter is a very small C interpreter written in Python from scratch. Project was written as a part of course Compiler Construction at The Faculty Of Computer Science.

Interpreter was designed and written by me, without using additional libraries. You can easily rewrite this to any other language. With this interpreter you can execute codes like following:

Setup

Prerequsite:
- Install python3.5 or later, preferably use a virtualenv.

Running interpreter

To execute c program, run python3 __main__.py -f <file>.

For example, to run the example1:

cd CInterpreter
python3 __main__.py -f example1.c

About

Small C interpreter written in Python from scratch. Project was written as a part of course Compiler Construction at The Faculty Of Computer Science.

License:MIT License


Languages

Language:Python 95.3%Language:C 4.7%