Conversation
- Move cmd/scip/tests/reprolang/ to reprolang/ - Move cmd/scip/tests/snapshots/ to reprolang/tests/snapshots/ - Move cmd/scip/tests/test_cmd/ to reprolang/tests/test_cmd/ - Extract test runner logic from cmd/scip/test.go to bindings/go/scip/testutil/test_runner.go (exported as RunTests) - Move TestSCIPSnapshots to reprolang/bindings/go/repro/snapshot_test.go - Move TestSCIPTests to reprolang/bindings/go/repro/test_cmd_test.go - Move TestTestCasesForLine to bindings/go/scip/testutil/test_runner_test.go - Update cmd/scip/test.go to use testutil.RunTests - Clean up cmd/scip/main_test.go (remove moved tests and unused imports)
…dule - bindings/go/repro/ → repro/ (flatten 3 levels of nesting) - src/ → grammar/ (meaningful package name instead of 'package src') - tests/ → testdata/ (Go convention) - Add separate go.mod with replace directive for isolation - Remove go-tree-sitter from root go.mod (now only in reprolang)
…-sitter Migrate the reprolang package to the official Go tree-sitter bindings: - sitter.ParseCtx → NewParser/SetLanguage/Parse - node.Type() → node.Kind() - node.StartPoint/EndPoint → node.StartPosition/EndPosition - ChildCount/Child index types: uint32/int → uint - grammar.GetLanguage() → grammar.Language() returning unsafe.Pointer - Store tree in reproSourceFile to keep it alive for node access - Remove unused context parameter from parseSourceFile
- Fix import ordering in binding_test.go for goimports - Update reprolang vendorHash and add proxyVendor to preserve CGo files - Add tree-sitter to buildInputs for C library headers
69b5a4d to
f9089dd
Compare
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.
Reprolang is a toy language that can be used to write very simple integration tests for
scip. I find it to be very useful. I was surprised that it's stored in some deeply nested directory.Since the project is a language with its own indexer, I made it more isolated with its own
go.mod. I've also migrated it to usetree-sitter/go-tree-sitterinstead of no longer maintainedsmacker/go-tree-sitter.