forth: vendor Gerry Jackson's forth2012-test-suite (Hayes Core + Ext)
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Has been cancelled
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Has been cancelled
This commit is contained in:
@@ -73,7 +73,7 @@ Representation:
|
||||
- [x] `BEGIN`, `UNTIL`, `WHILE`, `REPEAT`, `AGAIN` — compile to loops
|
||||
- [x] `DO`, `LOOP`, `+LOOP`, `I`, `J`, `LEAVE` — counted loops (needs a return stack)
|
||||
- [x] Return stack: `>R`, `R>`, `R@`, `2>R`, `2R>`, `2R@`
|
||||
- [ ] Vendor John Hayes' test suite to `lib/forth/ans-tests/`
|
||||
- [x] Vendor John Hayes' test suite to `lib/forth/ans-tests/`
|
||||
- [ ] `lib/forth/conformance.sh` + runner; `scoreboard.json` + `scoreboard.md`
|
||||
- [ ] Baseline: probably 30-50% Core passing after phase 3
|
||||
|
||||
@@ -99,6 +99,14 @@ Representation:
|
||||
|
||||
_Newest first._
|
||||
|
||||
- **Phase 3 — vendor Gerry Jackson's forth2012-test-suite.** Added
|
||||
`lib/forth/ans-tests/{tester.fr, core.fr, coreexttest.fth}` from
|
||||
https://github.com/gerryjackson/forth2012-test-suite (master, fetched
|
||||
2026-04-24). `tester.fr` is Hayes' `T{ ... -> ... }T` harness; `core.fr`
|
||||
is the ~1000-line Core word tests; `coreexttest.fth` is Core Ext
|
||||
(parked for later phases). Files are pristine — the conformance runner
|
||||
(next iteration) will consume them.
|
||||
|
||||
- **Phase 3 — `DO`/`LOOP`/`+LOOP`/`I`/`J`/`LEAVE` + return stack words (+16).**
|
||||
Counted loops compile onto the same PC-driven body runner. DO emits an
|
||||
enter-op (pops limit+start from data stack, pushes them to rstack) and
|
||||
|
||||
Reference in New Issue
Block a user