Section "playerpy"

This cross compiler generates a Python text in Unicode. Prolog strings are enclosed by the Python string literal double quote (“). The code points \a, \b, \f, \n, \r, \t, \v \', \" and \\ are es-caped by a backslash. Control and invalid code points are escaped by the Python notation \xXX, \uXXXX and \UXXXXXXXX. Otherwise, the Prolog string is written verbatim.

The following transpile commands are provided:

transpilepy_begin(B):
transpilepy_begin(B, O):
The predicate succeeds in writing an empty Python file B. The following transpile options O are recognized:

main_entry(E): E indicates whether function main() should be generated.
doge(A): A is the location of Dogelog player.

transpilepy_add(A, B):
transpilepy_add(A, B, O):
The predicate succeeds in cross compiling the Prolog text file A into Python file B.
transpilepy_end(B):
transpilepy_end(B, O):
The predicate succeeds adding an epilogue to the Python file B.
bundlepy_add(A, B):
bundlepy_add(A, B, O):
The predicate succeeds in appending the Python files A to the Python file B, converting Python imports. The bundler silently extends an already existing Python file B. The ter-nary predicate allows specifying bundle options.

keep_import(I): I indicates whether imports should be kept.

Kommentare