Step 18 (part 2): _hyperscript parser — token stream → SX AST
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>
This commit is contained in:
@@ -1310,6 +1310,7 @@ let run_spec_tests env test_files =
|
||||
load_module "parser-combinators.sx" lib_dir;
|
||||
let hs_dir = Filename.concat lib_dir "hyperscript" in
|
||||
load_module "tokenizer.sx" hs_dir;
|
||||
load_module "parser.sx" hs_dir;
|
||||
load_module "types.sx" lib_dir;
|
||||
load_module "sx-swap.sx" lib_dir;
|
||||
(* Shared templates: TW styling engine *)
|
||||
|
||||
Reference in New Issue
Block a user