I'm looking for a way to get the XML (or another way/structure) from a sequence of blocks used on my workspace inside Scratch-MIT 3.0 to display this code in the Blockly Google's library.
Right now I have access to the Abstract Syntax Tree generated by the scratch-vm component (https://github.com/LLK/scratch-vm), but I don't see a way to "rebuild" the code represented on this right on my workspace.
Is Scratch rendering the code from the Abstract Syntax tree structure or what? And how?