Python Compiler
CSharpIsGud (389)

A real python compiler!

For now it only supports a small amount of the syntax.

This compiler compiles python directly to C, which then gets compiled to a native executable(which means its much MUCH faster than normal python).

Only variables, if statements and function calls are implemented right now.

Currently I just have it running a small program that tells you if two numbers add up to a target number

You are viewing a single comment. View All
Warhawk947 (453)

I got an error:

 clang++-7 -pthread -std=c++17 -o main compiler.cpp lex.cpp main.cpp parser.cpp && ./main && clang++ CompileDir/output.cpp -o compiled && ./compiled
CompileDir/output.cpp:21:14: error: expected expression
        __PyValue__(else);
                    ^
CompileDir/output.cpp:23:14: error: expected expression
        __PyValue__(:);
                    ^
2 errors generated.
exit status 1
CSharpIsGud (389)

@Warhawk947 python program your compiling