In Python, it gives the code, but it also executes it immediately (so we can be sure that the code works without needing to correct it) and generates the requested files. A Xojo plugin could do the same thing.
If you click on “Show work”, you’ll see the Python code used: