Official website

Quick search

Search pages in English or हिंदी. Detailed language reference is in Scarp Docs.

Top 6 website pages

Published prereleases · CLI migration

Move to the current Scarp CLI.

Version-by-version command guidance for published Scarp prereleases, with explicit differences between runtime checks and static verification.

Migrating from an older Scarp alpha? First check the executable's version, then choose commands that exist in that exact published release. This guide compares published releases through v0.0.6-alpha.3. It is a documented command migration guide—not a promise that every program, manifest or Rust API works unchanged between versions.

Which commands shipped in each version?

Published releaseExecute fileCheck fileNew / notable capabilityEvidence
v0.0.5-alpha.13 website fixtures in current CIscarp run hello.srpscarp check hello.srpRelative .srp imports and explicit public source declarationsPublished releaseSource commit
v0.0.5-alpha.2Release-documented; not in current CI fixturesscarp run hello.srpscarp check hello.srpChecked module inventory and structured module metadataPublished releaseSource commit
v0.0.5-alpha.3Release-documented; not in current CI fixturesscarp exec hello.srpscarp verify hello.srpguide, diagnose, exec, verify FILE and nested inspectPublished releaseSource commit
v0.0.5-alpha.4Release-documented; not in current CI fixturesscarp exec hello.srpscarp verify hello.srpscarp create DIRECTORY, verify DIRECTORY and launch DIRECTORYPublished releaseSource commit
v0.0.5-alpha.5Release-documented; not in current CI fixturesscarp exec hello.srpscarp verify hello.srpProject module inspection via CLI; restricted scalar C11 generator for Rust embedding only (no compile CLI)Published releaseSource commit
v0.0.6-alpha.1Release-documented; not in current CI fixturesscarp exec hello.srpscarp verify hello.srpStatic symbol/reference inspection and rms(vector); no LSP or native compile CLIPublished releaseSource commit
v0.0.6-alpha.2Release-documented; not in current CI fixturesscarp exec hello.srpscarp verify hello.srpRetains rms(vector) and symbol inspection; opt-in token/syntax/semantic Rust caches, edit planning and eviction (no LSP or native compile CLI)Published releaseSource commit
v0.0.6-alpha.33 website fixtures in current CIscarp exec hello.srpscarp verify hello.srpAdds topk(vector,integer), topk_values, softmax_temp and logsoftmax_temp; retains rms(vector), read-only symbol inspection and opt-in Rust caches (no LSP or native compile CLI)Published releaseSource commit

"CI-tested" here means only the 3 website fixtures passed their exact-output and version-specific validation checks under that version. Alpha.2 through alpha.5 entries are based on their published source and release history, not this website's current executable fixture tests. The alpha.4 fixtures passed in an earlier website CI run; the current suite tests the baseline and alpha.6.

Translate old commands carefully

Earlier commandCurrent commandImportant difference
scarp run hello.srpscarp exec hello.srpExecute a file with the Scarp interpreter; the legacy run spelling remains temporarily accepted.
scarp check hello.srpscarp verify hello.srpNot equivalent: check can evaluate selected runtime paths without printing; verify statically checks names and types without running ordinary statements.Do not automatically substitute one for the other.
scarp tokens hello.srpscarp inspect tokens hello.srpInspect lexer tokens rather than execute the program.
scarp modules --json hello.srpscarp inspect modules --json hello.srpInspect checked module metadata. The older standalone modules command began in alpha.2, not alpha.1.

Check versus verify: legacy check evaluates selected runtime operations in fresh storage while suppressing printed output; verify performs static validation without executing ordinary runtime statements. For a runtime behavior test, execute the program and inspect its exit code and output instead. Do not assume a successful static verification guarantees successful runtime execution.

A safe file-to-project upgrade

  1. Run scarp --version on the executable you intend to use. Keep the old binary available while checking programs against the published prerelease.
  2. If you are using alpha.1 or alpha.2, start with legacy run and check commands. For alpha.3 or later, prefer exec to run a file and verify FILE.srp for static checking.
  3. In alpha.4, create a new project directory; create refuses an already-existing destination. Review its Scarp.project manifest before moving existing source files into it.
  4. Use verify PROJECT_DIRECTORY to statically check its entrypoint, then launch PROJECT_DIRECTORY to actually execute it. Both commands require the explicit directory argument.

Published alpha.4 project commands

terminal
scarp version
scarp create hello-world
scarp verify hello-world
scarp launch hello-world

These project commands were introduced in alpha.4 and remain available in v0.0.6-alpha.3; alpha.3 does not offer project-directory execution. Since alpha.5, you can additionally use scarp inspect modules --json hello-world to inspect the project's modules without running it. Since alpha.6, read-only inspect symbols --json and inspect references --json accept source files or explicit project directories. The manifest is experimental: there is no package registry, dependency lockfile or native .srp executable generator. Read the release-pinned project workflow and CLI reference source.

Published alpha.6 symbol navigation

Alpha.6 retains opt-in static source indexing; neither command executes ordinary runtime statements. JSON schema-v1 snapshots are compilation-local, not durable editor databases.

Terminal · alpha.6
scarp inspect symbols --json hello-world
scarp inspect references --json hello-world

These commands are absent from alpha.5 binaries. Check the release-pinned CLI reference for exact options and errors; there is still no LSP or native scarp compile command.

What needs testing after migration?

  • Program output, runtime failures and execution-budget behavior.
  • Imports and filesystem paths, particularly inside a new project.
  • Editor/CLI integrations that invoke the older command vocabulary.
  • Syntax, manifest and embedding APIs: none have a stable v1 guarantee.

The compatibility evidence names the exact three programs tested under the original baseline and v0.0.6-alpha.3. For binaries and checksums, use Downloads. See the complete release comparison or official release notes.