Convert Procedure(s) into an Extension

Is it possible to convert a procedure made with the Blocks Editor, into an Extension?

The question may seem stupid but still...
Maybe decompile the .apk, then find the code for the procedure and recompile it as an extension?

Is there a way? Is it possible?

Yes, I think because the code is written in Yail which gets compiled to java. (Not sure).

3 Likes

Think again.

1 Like

In theory, yes you could do this, it would just be complicated. As already mentioned, the blocks are converted to a language called YAIL, which is Scheme with some additional macros. Given the YAIL for a particular procedure, you could compile it with the Kawa library to produce a class file. From there, you could invoke the procedure from your extension.

5 Likes