PDF

blockstblockst0.4.0

Render Scratch, Blockly, MakeCode and Open Roberta blocks for educational documents.

NEPO (Open Roberta)#

nepo() renders the blocks of Open Roberta Lab for the Calliope mini and the micro:bit — a renderer of its own, contributed by lkoehl. Block text prints in Open Roberta’s own wording even when the source used a colloquial alias.

#nepo(
  code,
  language: "de",
  platform: "calliope",   // "calliope", "calliopev3", "microbit"
  theme: auto,
  scale: auto,
  font: auto,
)
#nepo("
Start
  Zeige Text \"Hallo\"
  Wiederhole unendlich oft
    Schalte RGB LED an (#ff0000)
  Ende
")

raw-nepo() renders nepo fences, nepo-parse() returns the block tree. The renderer is a prototype: the set of blocks is the beginner set of the three platforms, and examples/nepo in the repository holds the programme collection and the comparison sheet against Open Roberta’s own drawings.