Claude/add zig zon parsing lkt cp#2
Merged
Conversation
Point the devDependency and Go module at the current tip of the upstream jsonic repository rather than the last published tag, so development tracks unreleased changes. TypeScript 19/19 and Go tests pass. https://claude.ai/code/session_01TLYwCQbxYQNqzzZstKtRCx
Pass { rule: { alt: { g: 'zon' } } } to the jsonic grammar method
(supported on main) so every alt in the ZON grammar is auto-tagged with
the 'zon' group. This makes the tags user-configurable at a single
site, enables `rule.exclude: 'zon'` for callers who want to opt out,
and removes redundant 'zon,' prefixes from each alt in the grammar
file.
https://claude.ai/code/session_01TLYwCQbxYQNqzzZstKtRCx
The plugin previously made a separate `jsonic.options(...)` / `j.SetOptions(...)` call before applying the grammar. Attach the same options to the GrammarSpec (`grammarDef.options` / `gs.Options`) so jsonic applies them atomically as part of `jsonic.grammar(...)` / `j.Grammar(...)`. The behaviour and test results are identical (TS 19/19, Go tests pass) but the plugin now has a single configuration-application site. https://claude.ai/code/session_01TLYwCQbxYQNqzzZstKtRCx
- npm jsonic dep and Go go.mod both track jsonic@main (commit 33f522a; Go resolves to v0.1.19). TS 19/19 and Go tests pass. - Add Parse(src, opts...) and MakeJsonic(opts...) convenience wrappers to the Go package so callers do not have to build a Jsonic instance manually (mirrors jsonicjs/ini). A typed ZonOptions struct is provided alongside the existing Zon/Defaults plugin entry points. - Restructure documentation to follow the Diataxis framework (Tutorials / How-to guides / Explanation / Reference) in doc/zon-ts.md and doc/zon-go.md, and link them from the README. The Makefile already matches the jsonicjs/ini template. https://claude.ai/code/session_01TLYwCQbxYQNqzzZstKtRCx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.