Update jsonic versions, add shared grammar, remove unused deps#4
Merged
Update jsonic versions, add shared grammar, remove unused deps#4
Conversation
- Update jsonic TS to v2.22.2 and Go to v0.1.15 - Remove @jsonic/doc, esbuild, prettier from devDependencies - Add shared csv-grammar.jsonic defining csv, newline, record, text rules - Add embed-grammar.js to embed grammar into TS and Go sources - Add Makefile following jsonicjs/ini pattern - Refactor src/csv.ts and go/plugin.go to use jsonic.grammar() with shared grammar and @ref function references - Rules list, elem, val remain in code to preserve non-strict mode compatibility with default jsonic JSON parsing https://claude.ai/code/session_015kkKtnxLx4Gjcz7L5rKWwD
Replace the string-replacement hack (#LN→#RL, #SP→#RS) with token set overrides. Go now registers custom non-ignored Tins and overrides the "LN" and "SP" token sets so that #LN and #SP in the shared grammar resolve to these Tins—matching the TS approach where the IGNORE set is modified per-instance. https://claude.ai/code/session_015kkKtnxLx4Gjcz7L5rKWwD
Update jsonic/go to latest main branch which makes TinSetIGNORE per-instance (cfg.IgnoreSet). Go CSV now uses the same approach as TS: delete TinLN/TinSP from the per-instance ignore set and use the standard #LN/#SP tokens directly. This removes the custom #RL/#RS tokens, token set overrides, and LineCheck/SpaceCheck callbacks. https://claude.ai/code/session_015kkKtnxLx4Gjcz7L5rKWwD
- CI: test Node.js 24.x and latest; add separate build-go job matching the jsonicjs/ini CI pattern - Remove Coveralls step (no coverage config present) - Rewrite README.md with quick examples for TS and Go, linking to full documentation - Add doc/csv-ts.md and doc/csv-go.md following diataxis.fr principles: tutorials, how-to guides, explanation, reference https://claude.ai/code/session_015kkKtnxLx4Gjcz7L5rKWwD
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.
shared grammar and @ref function references
compatibility with default jsonic JSON parsing
https://claude.ai/code/session_015kkKtnxLx4Gjcz7L5rKWwD