The Playground
An identifier workbench over the real engine: type any identifier and the Rust implementation — pubid-rscompiled to WebAssembly — parses it client-side, no server round-trip. The grammar artifacts are the checksummed PARG envelopes the whole fleet shares, bundled with the engine and re-verified at load.
The input/output contract
Any spelling of a standards identifier. In auto-detect mode every ported flavor tries the input and the fastest-ordered hit parses it; in manual mode the chosen flavor's grammar decides. A grammar rejection, a failed check digit or an unknown flavor all come back as a verdict — the workbench never throws.
The typed tree (the canonical _type-tagged attribute hash), the canonical human render, and theURN/MRN emission with its namespace class —urn for the RFC 8141 forms, mrnfor the urn:mrn: member identifiers (IHO, IALA, WMO).
The verdict classes
| code | meaning |
|---|---|
| (ok) | the input parsed; result carries the report |
| unknown_flavor | no ported flavor of that name (the manual-mode picker prevents this) |
| parse | the grammar rejected the input |
| invalid | the grammar matched but the flavor semantics rejected it (a failed check digit, an out-of-range stage) |
| artifact | a grammar envelope failed to load or verify — never silently tolerated |
The engine surface
| export | the Rust mirror |
|---|---|
| pubid_flavors() | implemented_flavors() |
| pubid_parse(f, s) | FlavorImpl::parse + the canonical forms |
| pubid_try_parse(f, s) | the verdict form (never throws) |
| pubid_detect(s) | every flavor that accepts the input |
| pubid_examples() | the corpus-fed example rows |
| pubid_artifacts() | the envelope receipts (checksum, semantics hash) |
The example set is fed from thepubid-testsuitecorpus: the vendored slices the conformance suite gates, distilled to the canonical rows. Every row parses under its flavor — the gate is part of the engine's own test suite.
Per-flavor documentation
When a parse succeeds the workbench links the flavor'spublisher schema pageand, where one exists, its URN scheme reference (41 flavors carry one underSpecifications).