lib/hyperscript/parser.sx — parses token stream from hs-tokenize into SX AST forms. Covers: Commands: add/remove/toggle class, set/put, log, hide/show, settle Events: on with from/filter, command sequences Sequencing: then, wait (with time units) Conditionals: if/then/else/end Expressions: property chains, it, comparisons, exists, refs DOM traversal: closest, next, previous Send/trigger events to targets Repeat: forever, N times Fetch/call with argument lists 55 tests across 12 suites. 3005/3005 full build, zero regressions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
20 KiB
20 KiB