Skip to content
This repository was archived by the owner on Jun 18, 2026. It is now read-only.

Add chained tag syntax for nested tag payloads#62

Merged
fasterthanlime merged 2 commits into
mainfrom
codex/chained-tag-syntax
Mar 19, 2026
Merged

Add chained tag syntax for nested tag payloads#62
fasterthanlime merged 2 commits into
mainfrom
codex/chained-tag-syntax

Conversation

@fasterthanlime

Copy link
Copy Markdown
Contributor

Summary

Add chained tag syntax so one tag can wrap exactly one nested tagged value without changing the meaning of ().

Changes

  • extend tokenization, parsing, and CST handling for @outer/@inner... syntax
  • lower chained tags to nested tag events so facet-styx can deserialize nested newtype enum variants
  • emit and round-trip chained tags in the formatter and serializer
  • document the syntax in the parser reference and primer, and add parser/serializer/round-trip coverage

Testing

  • cargo nextest run -p styx-tokenizer -p styx-parse -p styx-cst -p styx-format -p facet-styx

@fasterthanlime fasterthanlime merged commit 46ddad0 into main Mar 19, 2026
21 checks passed
@fasterthanlime fasterthanlime deleted the codex/chained-tag-syntax branch March 19, 2026 13:25
@github-actions github-actions Bot mentioned this pull request Mar 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant