revendor: tree-sitter-m grammar v0.1.2 (YottaDB m-modern-corpus coverage)#1
Merged
Merged
Conversation
…age) Re-vendor wasm/vendor/grammar/src/parser.c from tree-sitter-m v0.1.2 (commit c796342, PR #7) and rebuild the embedded parse/tree-sitter-m.wasm via emscripten/emsdk:4.0.4. ABI unchanged (15); scanner.c + headers unchanged (the grammar change was additive grammar.js only). The new grammar adds standard YottaDB syntax the VistA-tuned grammar never modelled: &/$& external C call-outs, WRITE/USE /mnemonic device controls, TSTART/LOCK argument-list :timeout, KILL */TSTART *, and extended reference ^|env|gvn / ^[env]gvn. Parse-coverage impact (files with a literal ERROR node, full corpora): m-modern-corpus (4,215): 451 -> 230 err (89.30% -> 94.54% clean) VistA (39,330): 363 -> 336 err (99.08% -> 99.15%, held) VistA did not regress. VENDOR.md commit-pin + version + revendor history updated. CGO_ENABLED=0 go test ./..., gofmt, go vet, golangci-lint all clean. Follow-up: m-cli must bump its m-parse dependency to consume this. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Re-vendors the embedded M grammar to tree-sitter-m v0.1.2 (commit
c796342, tree-sitter-m PR #7) and rebuildsparse/tree-sitter-m.wasmviaemscripten/emsdk:4.0.4.scanner.c+ headers unchanged — the grammar change was additivegrammar.jsonly.&/$&external C call-outs,WRITE/USE/mnemonicdevice controls,TSTART/LOCKargument-list:timeout,KILL */TSTART *, extended reference^|env|gvn/^[env]gvn.Parse-coverage impact (files with a literal
ERRORnode, full corpora)VistA did not regress.
Verification
CGO_ENABLED=0 go test ./...✓,gofmt✓,go vet✓,golangci-lint✓Follow-up (separate): m-cli must bump its m-parse dependency to consume this grammar.
🤖 Generated with Claude Code