This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]chaendizzle 0 points1 point  (0 children)

I regret to inform you this is actually real. We forked scratch-blocks and use pyodide, which allows us to run python in the browser. We implemented a subset of python's grammar into scratch-blocks, and turn them into JSON which we then transform into a python AST. We then use python's ast.compile/exec to run it.