Skip to content

Update jsonic versions, add shared grammar, remove unused deps#4

Merged
rjrodger merged 4 commits intomainfrom
claude/update-jsonic-versions-38KMs
Apr 13, 2026
Merged

Update jsonic versions, add shared grammar, remove unused deps#4
rjrodger merged 4 commits intomainfrom
claude/update-jsonic-versions-38KMs

Conversation

@rjrodger
Copy link
Copy Markdown
Contributor

  • 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

claude added 4 commits April 13, 2026 17:15
- 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
@rjrodger rjrodger merged commit efadca3 into main Apr 13, 2026
11 checks passed
@rjrodger rjrodger deleted the claude/update-jsonic-versions-38KMs branch April 19, 2026 16:32
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.

2 participants