PDF

blockstblockst0.4.2

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 set of blocks is the beginner set of the three platforms, plus the logic, loop, radio and sensor blocks of the lab’s expert toolbox: negation, the counting loop with a step, the accelerometer, the radio blocks and the Calliope mini’s Grove sensors. Units follow the sensor’s mode and ports come from the robot configuration, as in the lab. examples/nepo in the repository holds the programme collection, a sheet of every block added after 0.4.0, and the comparison against Open Roberta’s own drawings.