3 ms·
I'm afraid I'm no expert - I just reviewed the converters because I would have liked to use Python both on the client- and the server-side; however, I eventuall
by HerrMonnezza 14y ago
I'm afraid I'm no expert - I just reviewed the converters because I would have liked to use Python both on the client- and the server-side; however, I eventually abandoned the idea.
I'm not sure how a converter could "skip over stuff it doesn't understand while translating stuff it does understand": it may make sense to work on "small" translation units (e.g., a function or method), but the code that comes out of the translation of a unit should be -at least syntactically- correct in the target language. Indeed, the more mature Python-to-C translators (e.g., Cython) do restrict the Python that are allowed in the source file, and refuse to compile the entire file if your code contains unsupported syntax.
If you are willing to invest some effort into adapting a translator yourself, (besides Pyjaco! :-)) PJS and Py2Js are both very clean and easy to understand/patch. Although they are no longer developed, they might provide a good starting point to build the "simple minded" translator that you would like to have.
(Thanks for the remark on the blog layout - I just picked one of the standard styles and did not pay much attention to the details.)