IronBlock - .NET interpreter for blockly XML

307 views
Skip to first unread message

Richard Astbury

unread,
Oct 31, 2018, 9:02:56 PM10/31/18
to Blockly
Hi,

It's interesting that blockly can generate code in several languages, and some folks have created libraries to generate server-side code like C#. 

The thought for generating code in the browser, and then executing server side is quite scary, but I thought it would still be interesting to leverage the power of the blockly UI to generate code that could be interpreted sever-side.

I created an experimental project in C# (.net standard) to interpret the blockly XML. It allows tight control of which language features are available, and provides easy extensibility points for you to add the implementation of your custom blocks.

Someone has also taken it a step further and used the roslyn API in .NET to allow C# to subsequently be generated and compiled from the XML.

Here's the repo, in case anyone's interested:


Thanks,

Rich.

Rachel Fenichel

unread,
Nov 1, 2018, 7:52:33 PM11/1/18
to Blockly
Thanks for sending this out!

Rachel
Reply all
Reply to author
Forward
0 new messages