写作code翻译在Python到C? [英] Writing code translator from Python to C?
问题描述
我被要求写一个code转换器,将采取一个Python程序,并产生一个C程序。你有我怎么能解决这个问题的任何想法或者是它甚至可能吗?
I was asked to write a code translator that would take a Python program and produce a C program. Do you have any ideas how could I approach this problem or is it even possible?
推荐答案
Shedskin:的http:// code.google.com/p/shedskin/
Shedskin: http://code.google.com/p/shedskin/
升压的Python:<一href=\"http://www.boost.org/doc/libs/1_42_0/libs/python/doc/index.html\">http://www.boost.org/doc/libs/1_42_0/libs/python/doc/index.html
PyCXX: http://cxx.sourceforge.net/
用Cython: http://www.cython.org/
从<一个href=\"http://wiki.python.org/moin/compile%20Python%20to%20C\">http://wiki.python.org/moin/compile%20Python%20to%20C,有相关项目的清单。
from http://wiki.python.org/moin/compile%20Python%20to%20C, there's a list of related projects.
高硼硅:<一href=\"http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/\">http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
而Psyco: http://psyco.sourceforge.net/
RPython: HTTP://$c$c.google.com/p/rpython/
这篇关于写作code翻译在Python到C?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!