Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/parser-template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
> {{TITLE}} parser, serializer, and builder for Node.js and TypeScript: **lenient on parse,
> spec-clean on emit**.

`{{PKG}}` is a zero-dependency TypeScript toolkit that follows the cosyte parser archetype: a lenient
`{{PKG}}` is a zero-dependency TypeScript toolkit that follows the Cosyte parser archetype: a lenient
parser that turns real-world, vendor-quirky input into **warnings** rather than failures, paired with
a serializer that always emits spec-clean output (Postel's Law). It mirrors the API shape of the
reference parser, [`@cosyte/hl7`](https://github.com/cosyte/hl7).
Expand All @@ -30,7 +30,7 @@ result.warnings; // stable, positional tolerance warnings (never throws on quirk
The parser is **lenient by default**: vendor quirks become warnings, not failures. A
`{ strict: true }` mode (to be added) escalates every tolerated deviation to a thrown error.

## The cosyte parser archetype
## The Cosyte parser archetype

- **Postel's Law**: liberal parser (lenient default + warnings), conservative serializer (always
spec-clean), so quirks don't propagate downstream on round-trip.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar_position: 1

# Core Concepts

`{{PKG}}` follows the shared **cosyte parser archetype**: the same mental model every `@cosyte/*`
`{{PKG}}` follows the shared **Cosyte parser archetype**: the same mental model every `@cosyte/*`
parser implements, so what you learn here transfers across the suite. `@cosyte/hl7` is the reference
implementation; this package mirrors its shape.

Expand Down
2 changes: 1 addition & 1 deletion scripts/parser-template/docs-content/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sidebar_position: 1
# {{PKG}}

Parse real-world, vendor-quirky {{TITLE}} and pull fields out in one line, without reading the spec.
`{{PKG}}` is a zero-dependency TypeScript toolkit following the cosyte parser archetype: a lenient
`{{PKG}}` is a zero-dependency TypeScript toolkit following the Cosyte parser archetype: a lenient
parser, an immutable model, a spec-clean serializer, and a profile system for vendor quirks. It
mirrors the API shape of the reference parser, `@cosyte/hl7`.

Expand Down
2 changes: 1 addition & 1 deletion scripts/parser-template/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const VERSION = "0.0.0";
/**
* The result of parsing a {{TITLE}} payload.
*
* Mirrors the cosyte parser archetype: a parsed value plus the **warnings** the lenient parser
* Mirrors the Cosyte parser archetype: a parsed value plus the **warnings** the lenient parser
* recovered from (Tier-2 deviations). The real model (an immutable document with dot-path access,
* named helpers, and a spec-clean serializer) lands in subsequent phases; for now this captures the
* minimal lenient-parse contract.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Property-based conformance tests for the cosyte parser archetype, driven by the shared
* Property-based conformance tests for the Cosyte parser archetype, driven by the shared
* `@cosyte/test-utils` invariant runners. The kit owns the **invariants**; this parser owns the
* **format-specific arbitraries** (the `{{Pascal}}` generators below).
*
Expand Down
Loading