v0.0.6-alpha.8 was published on 12 November 2026. This experimental release introduces declarative offline projects, executable Scarp test files, and interpreter assertions. The homepage examples remain pinned to their historical compiler baseline.
Create a declarative Scarp project
scarp init calculator
scarp verify calculator
scarp run calculator
scarp project info calculatorinit requires a new directory and creates ascarp.project manifest pointing to asrc/main.srp entrypoint. verify performs static checking; run interprets the entrypoint; andproject info reads validated metadata without executing application code. The manifest is Scarp-specific, not TOML or executable source. Existing Scarp.project,create and launch remain supported.
For a complete starter project, use the beginner guide, including the following CI-tested files. The application uses a public, pure add function imported by its entrypoint and its tests:
pub pure funcra add(left: integer, right: integer) -> integer {
return left + right;
}import "math.srp" as math;
print(math.add(20, 22));42Run ordinary .srp programs as tests
Create standalone source files directly inside tests/. Discovery is nonrecursive, sorted by UTF-8 filename and limited to 64 immediate .srp files. A missing or empty suite succeeds unless you specify --require-tests.
import "../src/math.srp" as math;
assert(math.add(2, 3) == 5, "addition should produce five");
print("captured test output");scarp test calculator
scarp test --list calculator
scarp test --json calculator
scarp test --require-tests --filter addition calculatorassert(condition, "message") requires a boolean and reports source-located E0065 when false. Its optional message must be a string literal no longer than 256 UTF-8 bytes. Sinceassert is now reserved, rename older identifiers using that spelling. These assertions execute in the interpreter and are not supported by experimental native backends.
--list discovers tests without executing their source;--json emits a schema-v1 suite report without program stdout; --filter selects a literal, case-sensitive filename substring, not a regular expression.
Per-test input without shared shell stdin
bind greeting = read_line();
assert(greeting == "नमस्ते", "per-test input mismatch");नमस्तेA sibling file such as tests/greeting.stdin supplies UTF-8 input exclusively to tests/greeting.srp when it calls read_line(). Fixtures are limited to 1 MiB each and the interpreter's ordinary per-line and total-input limits still apply. Test listing does not read these fixtures. The test files shown above are executed against the exact alpha.8 compiler source by website CI, including empty-suite, structured-report and assertion-failure cases.
Compatibility and limits
The optional empty dependencies {} block is reserved syntax. Alpha.8 does not install dependencies or provide a package registry, general scarp compile command, integrated LSP, stable ABI or GPU runtime. This is a prerelease, not production-ready tooling. The website's existing compatibility tests cover selected examples rather than all compiler behavior.
The source-pinned compiler docs may retain their earlier development-branch status banners; use the published official release notesas the release-status authority. Also see the declarative manifest reference, test runner guide, assertion reference, download checksums, and website fixture evidence.
