Section "playerj"

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

The following transpile commands are provided:

transpilej_begin(B):
transpilej_begin(B, O):
The predicate succeeds in writing an empty Java 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.

transpilej_add(A, B):
transpilej_add(A, B, O):
The predicate succeeds in cross compiling the Prolog text file A into the Java file B.
transpilej_end(B):
transpilej_end(B, O):
The predicate succeeds adding an epilogue to the Java file B.
bundlej_add(A, B):
bundlej_add(A, B, O):
The predicate succeeds in appending the Java files A to the Java file B, converting Java imports. The bundler silently overwrites an already existing Java file B. The ternary predicate allows specifying bundle options.

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

Kommentare