cfile:python C代码生成器
c文件 用Python 3编写的交流代码生成器。 用法 import cfile as C hello = C . cfile ( 'hello.c' ) hello . code . append ( C . sysinclude ( 'stdio.h' )) hello . code . append ( C . blank ()) hello . code . append ( C . function ( 'main' , 'int' ,). add_param ( C . variable ( 'argc' , 'int' )). add_param ( C . variable ( 'argv' , 'char' , pointer = 2 ))) body = C . block ( innerIndent = 3 ) body . append ( C . statemen