I am on a long train journey and had plenty of time to work on WebPBricks - the web browser based IDE for the LEGO Mindstorms RCX (the yellow programmable brick of the first Mindstorms generation). The goal was to get started in developing a block based programming frontend - and I am quite happy with these intermediate results (based on Blockly). Not published yet... but the generated code compiles successfully.

#LEGO #Mindstorms #RCX #WebPBricks #WebNQC #WASM #robotics #robots #stem #pbrick

⬆️ I've reused a lot of the built-in default blocks and their JavaScript code generator... because JS is (syntactically) not too far away from C/NQC where I am using it. "Orphan blocks" do not generate code... still some TODOs left, but most of it should already work out of the box. Yet another jigsaw piece which is looking for proper integration into WebPBrick... also with serialization (storing/loading programs). I'd be happy to see anybody interested in trying this out.
And published the code. In case you want to try it, check out https://github.com/maehw/WebPBrick/blob/main/nqc/blocklynqc/index.html - you'll need to test locally as this isn't uploaded to webpbrick.com yet. No external dependencies. And no need to run a local webserver this time!
WebPBrick/nqc/blocklynqc/index.html at main · maehw/WebPBrick

Web-based IDE for programming the LEGO Mindstorms RCX using NQC with modern technologies - maehw/WebPBrick

GitHub
I should have left the bodies of the `until` loops empty and have continued below. But nobody noticed. 😉