js to block

66 views
Skip to first unread message

José Trindade Gamer

unread,
Nov 2, 2021, 12:07:25 PM11/2/21
to Blockly
how can i make something that let me turn a js code into blocks?

Neil Fraser

unread,
Nov 2, 2021, 12:20:43 PM11/2/21
to blo...@googlegroups.com
Not easily.  The general problem is unsolvable, since closures and object-oriented structures can't be represented by the sample blocks.  However, some conversion from JS to blocks is possible in more limited cases.

There have been prior discussions regarding this on the group, and a few partial implementations, but it is not something that Blockly provides out of the box.

Sent (awkwardly) from an Android device.

José Trindade Gamer <josetrin...@gmail.com> schrieb am Di., 2. Nov. 2021, 09:07:
how can i make something that let me turn a js code into blocks?

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blockly/ce284c69-c3cd-4f5e-b3df-b5538741d784n%40googlegroups.com.

Mark Friedman

unread,
Nov 2, 2021, 3:12:04 PM11/2/21
to blo...@googlegroups.com
If you're not wedded to Blockly, you might also take a look at Droplet Editor. It hasn't updated its version of JavaScript in a while, so you might have to do some work on it.

-Mark


Reply all
Reply to author
Forward
0 new messages