Skip to content

lox-sim: PicoC Code1/4/8/16 blocks are pass-through stubs, not executed #4

@eisber

Description

@eisber

Code1/Code4/Code8/Code16 ('Program' blocks, CT 325-328) currently forward the first input to the first output and warn 'PicoC block is not simulated'. The script is not parsed or executed.

Blocked on verification inputs (no real Code block exists in repo golden configs or live configs):

  1. A real downloaded Code block to capture the exact XML storage format of the script text + connector layout.
  2. The authoritative PicoC runtime API surface (getinput/setoutput/getinputtext/setoutputtext, etc.).

Plan once unblocked: parse the code string in parser.rs (like Formula/SequenceController), implement a bounded subset interpreter (var decls, arithmetic, if/else, I/O intrinsics) in lox-sim/src/blocks/misc.rs with graceful pass-through fallback for unsupported scripts, validated against the real block.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions