Scratch-gui: I want to use these blocks to generate python code. I can't find an interface to generate code. What should I do?

Created on 15 Aug 2018  ·  8Comments  ·  Source: LLK/scratch-gui

Expected Behavior

_Please describe what should happen_

Actual Behavior

_Describe what actually happens_

Steps to Reproduce

_Explain what someone needs to do in order to see what's described in Actual behavior above_

Operating System and Browser

_e.g. Mac OS 10.11.6 Safari 10.0_

question

All 8 comments

convert them to java script, and then to python :blush:

But,i dont know how to convert them to javascript,Could you tell me more about it,millions of thanks

@ScratchDiogoh

@javascriptzpt I only know a few blocks for javascript, but you can refer to this guide:
https://en.wikipedia.org/wiki/JavaScript_syntax

who can help me?

@javascriptzpt You can refer to Generating Code
or take a look at my demo

@wwj718 我看到你的工程里“scratch-blocks_hello_world”这个项目,但我没找到生成代码的部分在哪里呀。

@javascriptzpt 生成代码的关键是自定定义generator

这部分和blockly文档没有差异,可以先读一些blockly的文档

We do not officially support "generators" with Scratch Blocks are rather encourage folks using our open source code to use the Scratch Virtual Machine available here:
https://github.com/LLK/scratch-vm

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ericrosenbaum picture ericrosenbaum  ·  4Comments

ericrosenbaum picture ericrosenbaum  ·  4Comments

Richienb picture Richienb  ·  3Comments

fsih picture fsih  ·  3Comments

apple502j picture apple502j  ·  4Comments