apl: programs-e2e + ⌿/⍀ glyph fix (+15 tests, 490/490)
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 53s
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 53s
programs-e2e.sx exercises the classic-algorithm shapes from lib/apl/tests/programs/*.apl via the full pipeline (apl-run on embedded source strings). Tests include factorial-via-∇, triangular numbers, sum-of-squares, prime-mask building blocks (divisor counts via outer mod), named-fn composition, dyadic max-of-two, and a single Newton sqrt step. The original one-liners (e.g. primes' inline ⍵←⍳⍵) need parser features we haven't built (compress-as-fn, inline assign) — the e2e tests use multi-statement equivalents. No file-reading primitive in OCaml SX, so source is embedded. Side-fix: ⌿ (first-axis reduce) and ⍀ (first-axis scan) were silently skipped by the tokenizer — added to apl-glyph-set and apl-parse-op-glyphs.
This commit is contained in:
@@ -25,8 +25,9 @@
|
||||
; Glyph classification sets
|
||||
; ============================================================
|
||||
|
||||
(define apl-parse-op-glyphs
|
||||
(list "/" "\\" "¨" "⍨" "∘" "." "⍣" "⍤" "⍥" "@"))
|
||||
(define
|
||||
apl-parse-op-glyphs
|
||||
(list "/" "⌿" "\\" "⍀" "¨" "⍨" "∘" "." "⍣" "⍤" "⍥" "@"))
|
||||
|
||||
(define
|
||||
apl-parse-fn-glyphs
|
||||
|
||||
Reference in New Issue
Block a user