Skip to content

Add grammar specs and sync pretty printer colour scheme - #23

Merged
johnhringiv merged 2 commits into
mainfrom
grammars-and-pretty
Oct 27, 2026
Merged

johnhringiv merged 2 commits into
mainfrom
grammars-and-pretty

Conversation

@johnhringiv

Copy link
Copy Markdown
Owner

Summary

  • Adds docs/grammars/ — the token and AST-tree grammar specs (shared byte-for-byte with the johnhringiv.com site repo, plus a README documenting the colour scheme and a package.json).
  • Updates src/pretty.rs so its colour mapping stays in sync with docs/grammars/ast-tree.json (see the "Colour scheme ⇄ pretty.rs" note in the grammars README).

Notes

  • pretty.rs rebased cleanly on top of main's Chapter 13 (double) changes.
  • cargo build passes.

🤖 Generated with Claude Code

Add docs/grammars (token + AST tree specs shared with johnhringiv.com)
and update pretty.rs to keep its colour mapping in sync with
docs/grammars/ast-tree.json.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@johnhringiv
johnhringiv merged commit ff8613b into main Oct 27, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant