How to create code generator for c language using blockly.

1,274 views
Skip to first unread message

Vivek

unread,
Mar 27, 2018, 6:56:02 AM3/27/18
to Blockly
Hi all,

I want to create blocks using blockly that will generate c code. So I need help in generating c language code from blocks.
Please tell me the steps needed for this.

Best Regards
Vivek

picklesrus

unread,
Mar 27, 2018, 6:54:36 PM3/27/18
to Blockly
Hi Vivek,

Here are some topics I'd look into:

Existing generators: 

Past messages from the forum:
Here's a search of the forum that has some good threads in it: https://groups.google.com/forum/#!searchin/blockly/c$20generator%7Csort:date

What some of the historical messages are missing is the fact that Blockly now supports typed variables, which might make building generators for typed languages easier.  Documentation for that is here: https://developers.google.com/blockly/guides/create-custom-blocks/variables#typed_variable_blocks

-picklesrus

immortal.d...@gmail.com

unread,
Apr 5, 2021, 9:27:19 PM4/5/21
to Blockly
 Did you ever make or find a real good C generator that feels like Blockly? While I found Lisa below it doesn't seem to work even just trying to create and print a text variable.

Reply all
Reply to author
Forward
0 new messages