#>literal_parser
real parser browser-local lossless check

Literal Spw Parser

This is the parser, running in your browser. Change the source and watch Spw become tokens, an abstract syntax tree, diagnostics, and an exact reconstruction.

This page runs the reader from spw-workbench, the same family spw.quest serves. A sample is a script from a page on this site. The line under the list says what that script is doing and links to its page. Paste another source, or open a .spw file. Outline, tokens, tree, and diagnostics are the parse.

@parse

Source → evidence

Parser build: spw-workbench

Try:

Literal source

editable literal

Tab indents, Shift + Tab outdents, Enter keeps the indent. Press Esc, then Tab, to leave the editor. A brace lights with its partner under the caret.

Waiting for the parser.

!load[source_into_app]

The first action creates an app-safe URL containing this exact source. The installed Spw app opens that URL at this parser; registered .spw files can open here directly on supporting systems.

Outlineas your editor shows it; select a row to go there
    Tokenslexer order + source positions
      ASTparser-owned node types + spans
      null
      Diagnosticserrors and warnings are not hidden; then what this kind of file is asked, and why
        #>v04_designer_specimens

        Language capability & v0.4 design specimens

        These specimens test both settled language capabilities (runnable claims/probes, dot-crawl joins, separator algebra, combinatoric genre) and historical v0.4 design probes (!:profile, >stem) against the live browser parser kernel. Load any specimen to inspect token spans, AST depth, and how candidate constructs either became capability contracts or retired into simpler conventions.

        Claims & Probes (load)

        owner_claim and #>wonder_* blocks pair hypotheses (?["..."]{}) with runnable probes (!probe{ "..." }); closing the loop onto a claim is the proposed inquiry.loop/1. See inquiry loop & claims.

        File Profiles (load)

        Historical !:profile "convention" specimen: tested as explicit syntax, now retired in favor of path-inferred file homes plus #:layer / #:operation / #:fixity headers (header.axes/1). See header axes.

        Dot-Crawl Joins (load)

        Crawl traverses complete braces ({a}.{b}.{c}). Tight a.b.c is one identifier. Inside a brace, comma holds a co-present set; semicolon orders a sequence; ~> relays a path. Pillar: joins.

        Stem Projections (load)

        Historical >stem[name]{...} specimen: one semantic root projected across copy units, CSS tokens, runtime datasets, and .spw handles. The language census now traces stem families instead, and checking that each projection has a reader is proposed.

        Combinatoric Genre (load)

        Five voices, twenty pairs. Dummy for a first beat, not twenty-five SKUs. Parser still has to round-trip boonhonk[genre]{...}. The table is the RPG Wednesday pantry.

        Path count (load)

        The spatial twin of a pair: paths[grid]{east.north}. Count it in the counting lab.

        Gradient slices (load)

        Slice-specific rates as one uphill hint. This sample lives on this page.

        Holdings (load)

        Seed, season, table — a small book of holds. Capsule <policy> is the channel, not a ticker. The book is versioned holdings.

        Files with a rule (a log, a question, a change record)

        Parsing says a source is Spw. A kind of file asks more: a log's entries are dated and named, a question carries its !probe, a change record says how it was checked. Load one, break its rule, and the diagnostics give the rule and the reason for it. spw.quest reads fourteen such files by the same rules.

        First beat (load)

        beat[unary]{close}<offer>, pair compose, season dwell. Same grammar as the first beat.

        ^proof_boundary

        What this proves

        Literal structure

        Source positions, token kinds, and AST spans remain inspectable. When the parser emits diagnostics they stay visible; permissive input remains accepted exactly as the parser reports.

        Portable kernel

        The parser has no DOM dependency. This page imports a browser bundle generated from the mounted workbench parser entrypoint.

        Lossless evidence

        The token stream is concatenated and compared with the original source. “Exact” means every emitted token reconstructs the literal input.

        Honest boundary

        This proves parsing and source geometry. It does not claim evaluation, canonical normalization, runtime effects, or semantic correctness for every possible program.