A Tiny-C language compiler, rewritten in Python(It has been converted from C to Python with as much one-to-one correlation as possible). Tiny-C is a c

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

submited by
Style Pass
2024-11-15 21:30:04

A Tiny-C language compiler, rewritten in Python(It has been converted from C to Python with as much one-to-one correlation as possible).

Tiny-C is a considerably stripped down version of C and it is meant as a pedagogical tool for learning about compilers. The integer global variables "a" to "z" are predefined and initialized to zero, and it is not possible to declare new variables. The compiler reads the program from standard input and prints out the value of the variables that are not zero.

Leave a Comment