summaryrefslogtreecommitdiff
path: root/src/gltf_render/types.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-17 07:57:28 -0300
committerGabriel Schneider <[email protected]>2026-11-17 12:15:01 -0300
commit610ffe373f0f5dd5ccb59bf575f5479ad1ecdbaf (patch)
treea18106eee98a132c16af929c5262496f98305e7d /src/gltf_render/types.zig
parent1533644884c5cd2b072f78e3a42d5c4fa52f793a (diff)
downloadsketchbook-610ffe373f0f5dd5ccb59bf575f5479ad1ecdbaf.tar.gz
sketchbook-610ffe373f0f5dd5ccb59bf575f5479ad1ecdbaf.zip
examples/live: hear this, the expression a node walk leaves the selection on
After Alt-o, Alt-i, Alt-n or Alt-p (helix's node walks, run in the editor on the module's parse) the primary range is read back and the text compiled again with it as a probe: Lang.compile takes the bytes of a selection and compiles the smallest expression holding them into a third tape, `Program.probe`. The compiler learns each expression's bytes as it parses (`spanned`: a number, a name used, a call, parentheses, a unary minus, each binary operation, a whole line), keeping the smallest that holds the probe: no table of spans. A name used is the line that defines it, so a walk onto `kick` hears kick. State keeps the probe's tape (`probe`, empty when there is none). While it is set, `draw` hears it as `out` (through the crossfade, as any change) and sees it as the picture, grey unless it is a colour. Any other key empties it, so Escape or an edit goes back to the program. It is in State, so a replay probes where the session did. Test: Lang.zig, a probe on an argument, a number, a cursor on one of its digits, a name used, a line's name, a selection Alt-o grew to, and between two lines (none); test/live.script, Alt-o twice from the 2 of 220 (`220`, then `tau * 220`), then Escape. Lang.compile takes the probe as a second argument; the other calls pass null. zig build test: 85 of 85 steps, 8 of 8 tests. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'src/gltf_render/types.zig')
0 files changed, 0 insertions, 0 deletions