没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
www.trustie.net/open_source_projects | 主页 > 开源项目社区 > cpy-translator |
cpy-translator
|
0 | 0 | 17 |
贡献者 | 讨论 | 代码提交 |
Cpy translatorThis project aims to write C code with a python style. Means, no curly braces, no semicolons.
This project goals is to simplify C coding: Imagine the following:
int main (int argc, char * arg_v[])
{
printf("Hello World! \n");
return 0;
}As:
int main (int argc, char * arg_v[])
printf("Hello World! \n")
return 0Cpy will translate the code for you so that you can compile it on a normal C compiler.
TutorialCopy and paste the example above and save it to hello_world.cpy .
Install cpy-translator and in the folder where you saved the file do in the command line:
depythonize_c hello_world.cpy > hello_world.cCompile hello_world.c with you desired C compiler.
News!Subscribe to the mailing list!
Discussion Mailing List Commits Mailing List WhyCpy is small article about the Rationale of this project