Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blockly generation #23

Open
lod opened this issue Feb 2, 2017 · 1 comment
Open

Blockly generation #23

lod opened this issue Feb 2, 2017 · 1 comment

Comments

@lod
Copy link
Contributor

lod commented Feb 2, 2017

No description provided.

@lod
Copy link
Contributor Author

lod commented Feb 14, 2017

There is Blockly for Web, Blockly for Android and Blockly for iOS. All distributed by Google.

Blockly for Android looks like a cut down version of Blockly for Web. So the Web version can be used for development and then ported later so long as I am a little careful.

Blockly supports event driven programming models, but it requires custom blocks to be defined
https://developers.google.com/blockly/guides/create-custom-blocks/block-paradigms#event_driven_program

I also need to create a generator to create pawn code, or pawn assembly.
https://developers.google.com/blockly/guides/create-custom-blocks/generating-code
Zero robotics did a C++ output, https://groups.google.com/forum/#!topic/blockly/BzUZOXy-RNM
I also have the C++ output generated by BlockDuino

Discussions seem to center around types being a significant problem, Blockly is designed for a dynamically typed language.
The solution for me will be to only support integers, should simplify it nicely. No floating point variables, no strings, lists or related functions. That should cut out half the generation code too.

Before I really write PAWN generation though I need to try writing a few scripts by hand
https://github.com/compuphase/pawn/tree/master/doc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant