GENERAL DESCRIPTION
The Python2CPP® family of software translator tools converts existing Python programs to C. The powerful dual conversion Python2CPP® translators accept Python programs in numerous dialects, check their syntax, analyze the syntax tree and generate C source code. Comments are moved transparently from the source file to the target file. Any built-in functions for math, string manipulation, and I/O in Python are converted to calls to external procedure. (see sample translation) The translator family currently supports the following Python dialects: For other dialects or custom translation, please contact us for a price quote.
Dialects Supported
- TYPE10 - Python 2.3
- TYPE20 - Python 2.7
- TYPE30 - Python 3.4
- TYPE40 - Python 3.5
- TYPE50 - Python 3.6
- TYPE60 - python 3.7
ORDER: Python2CPP type xx ( select one from above)
The Python2CPP® translators contain a syntax analyzer, a Python to tertiary converter, and a tertiary to C++ converter. The syntax analyzer scans the Python input file for syntactic errors and generates a listing file of the Python program. Any syntactic errors will be flagged with detailed English messages in the listing file. If no errors are encountered, then the Python input file is converted to tertiary language.
The transfer of the Python source language into an intermediate tertiary language ensures the logical equivalence between the source and target languages. This tertiary language is common to the entire family of our translators. The tertiary language is automatically converted to C++ while maintaining the logical equivalence between the output C++ program and the input Python program.
Python STATEMENTS SUPPORTED:
assignment statement
procedure statement
compound statement
while statement
repeat statement
for statement
if statement
while statement
case statement
with statement
empty statement
Python TYPES SUPPORTED:
Scalar type
Subrange type
String type
Array type
Record type
Set type
File type
Pointer type
|