add sextest test runner

A tool for testing Sex programs. Details in tools/sextest/README.org
This commit is contained in:
2026-05-15 19:49:48 +03:00
parent b157315e3d
commit c678df7978
6 changed files with 227 additions and 16 deletions

View File

@@ -155,7 +155,9 @@
(return #f))
(load-persistent-module-paths)
(sex-fmt-current-file (to-absolute-pathname input))
(if (eq? input 'stdin)
(sex-fmt-current-file "stdin")
(sex-fmt-current-file (to-absolute-pathname input)))
(let* ((raw-forms (append prelude (read-raw-forms input)))
(sex-forms (semantic-process-forms raw-forms input)))
(if (or (get-arg args 'macro-expand #f)