Bug making a transpiler

Viewed 15

I making a transpiler on python, I want to make a programming language that is C but simple, something like Coffescript but in C, the programming language is transpiled, from my programming language -> C.

The transpiler is made on Python, here the code: https://github.com/RinkaGI/Cimple.

This have a lot of errors, it's my first time developing a transpiler, I have a question, when I make that if you write: inputInteger it will be translated to "%i", for example when you are making scanf(), and scanf function in my programming language is input(). So Python confuses between input and inputInteger, so result is: "scanfInteger"

Other thing, with some reason when I do a lot of prints, (in my programming language printf is print), for some reason print is printfffff.

How can I solve this?

0 Answers
Related