IO predicates: term_to_atom/2, term_string/2, with_output_to/2, format/1,2, writeln/1
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Has been cancelled

Adds 6 new built-in predicates to the Prolog runtime and 24 tests covering
term<->atom conversion (bidirectional), output capture, format directives (~w/~a/~d/~n/~~).
456/456 tests passing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-25 13:00:42 +00:00
parent 0be5eeafd8
commit be2000a048
5 changed files with 518 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
# Prolog scoreboard
**432 / 432 passing** (0 failure(s)).
Generated 2026-04-25T12:40:55+00:00.
**456 / 456 passing** (0 failure(s)).
Generated 2026-04-25T13:00:15+00:00.
| Suite | Passed | Total | Status |
|-------|--------|-------|--------|
@@ -26,6 +26,7 @@ Generated 2026-04-25T12:40:55+00:00.
| meta_call | 15 | 15 | ok |
| set_predicates | 15 | 15 | ok |
| char_predicates | 27 | 27 | ok |
| io_predicates | 24 | 24 | ok |
Run `bash lib/prolog/conformance.sh` to refresh. Override the binary
with `SX_SERVER=path/to/sx_server.exe bash …`.