The runtime counterpart to bootstrap.ss. host/chez/cli.ss loads the checked-in seed + the zero-Janet spine and compiles+evals a -e expression entirely on Chez; bin/joltc execs it. With the seed checked in, a clone runs jolt with only Chez installed — no Janet at build or run time. Multi-form -e wraps in (do ...) to match Clojure. test/chez/cli-test.janet 9/9.
14 lines
579 B
Bash
Executable file
14 lines
579 B
Bash
Executable file
#!/bin/sh
|
|
# joltc (jolt-9phg, inc9b) — the pure-Chez jolt runtime. NO Janet.
|
|
#
|
|
# Runs a Clojure expression through the zero-Janet spine on Chez, using the
|
|
# checked-in bootstrap seed (host/chez/seed/). With only Chez installed and no
|
|
# Janet anywhere, this compiles and evaluates jolt code end to end.
|
|
#
|
|
# bin/joltc -e "(+ 1 2)"
|
|
#
|
|
# (bin/jolt-chez is the older Janet-hosted -e path still used as the corpus oracle;
|
|
# joltc is the fully self-hosted runtime.)
|
|
root="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
|
|
cd "$root" || exit 1
|
|
exec chez --script host/chez/cli.ss "$@"
|