Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/vhyrro/zig-tree-sitter
High level bindings around `tree-sitter` for zig
https://github.com/vhyrro/zig-tree-sitter
fix(build): deprecate \`addIncludeDir\` in favor of \`addIncludePath\`
c172f46c66d0220bf835b9880acd67e81b68a63f authored about 2 years ago by NTBBloodbath <[email protected]>
c172f46c66d0220bf835b9880acd67e81b68a63f authored about 2 years ago by NTBBloodbath <[email protected]>
feat: make tests build again, refactor some cursor internals
c0335f9df6e785a713d549f1f33319438bfad906 authored about 2 years ago by Vhyrro <[email protected]>
c0335f9df6e785a713d549f1f33319438bfad906 authored about 2 years ago by Vhyrro <[email protected]>
fix(cursor): proper call for `Node.is_missing` in `Cursor.init`
c5bc98f8d8be55df11f8d8b9a2dd61be30ac0529 authored over 2 years ago by NTBBloodbath <[email protected]>
c5bc98f8d8be55df11f8d8b9a2dd61be30ac0529 authored over 2 years ago by NTBBloodbath <[email protected]>
fix(cursor): expose all Cursor struct functions
c29e044e5fe6dd7b06bbda326d2d3a938874806d authored over 2 years ago by NTBBloodbath <[email protected]>
c29e044e5fe6dd7b06bbda326d2d3a938874806d authored over 2 years ago by NTBBloodbath <[email protected]>
chore(node): small `Node.parent` return statement change for code consistency
69664c96f0c4a78b39d23d8eb3143b338fcdcc8e authored over 2 years ago by NTBBloodbath <[email protected]>
69664c96f0c4a78b39d23d8eb3143b338fcdcc8e authored over 2 years ago by NTBBloodbath <[email protected]>
fix(node): expose `end_point` function (forgot to add pub)
54d57da2d76085cb35ae555a43ccf5e31d3f7682 authored over 2 years ago by NTBBloodbath <[email protected]>
54d57da2d76085cb35ae555a43ccf5e31d3f7682 authored over 2 years ago by NTBBloodbath <[email protected]>
feat: add `TSPointer` wrapper
feat(node): add `Node.start_point` and `Node.end_point` functions
050ee565ffa18addc81910d7d6e6b75bda7c826e authored over 2 years ago by NTBBloodbath <[email protected]>
refact(build.zig): expose `linkTreeSitter` function, that should allow us to use library in any project
263e2ca11c2c517c868c3a4b98e638773ce1b5e4 authored over 2 years ago by NTBBloodbath <[email protected]>
263e2ca11c2c517c868c3a4b98e638773ce1b5e4 authored over 2 years ago by NTBBloodbath <[email protected]>
fix: use absolute paths to get it to actually work as a library
54bf7f5504d189aedf1917ebc23737c7878e89ed authored over 2 years ago by Vhyrro <[email protected]>
54bf7f5504d189aedf1917ebc23737c7878e89ed authored over 2 years ago by Vhyrro <[email protected]>
fix(build): use stage1 when compiling and not only for running tests
c6dd3fe98c0a62c64f7ee3737740b95aa5f4f464 authored over 2 years ago by NTBBloodbath <[email protected]>
c6dd3fe98c0a62c64f7ee3737740b95aa5f4f464 authored over 2 years ago by NTBBloodbath <[email protected]>
tests: add more tests to parser.zig
747f315912c3a17d1bb922eccd746b1d8cd8dbb1 authored over 2 years ago by Vhyrro <[email protected]>
747f315912c3a17d1bb922eccd746b1d8cd8dbb1 authored over 2 years ago by Vhyrro <[email protected]>
feat(tests.zig): add `example_source` string
b9cfd9e1d5ac0454b1c9f24fb0575ff5bf9b9055 authored over 2 years ago by Vhyrro <[email protected]>
b9cfd9e1d5ac0454b1c9f24fb0575ff5bf9b9055 authored over 2 years ago by Vhyrro <[email protected]>
feat: add some simple tests
c8055790e790d17e0623d36299af757618e3452c authored over 2 years ago by Vhyrro <[email protected]>
c8055790e790d17e0623d36299af757618e3452c authored over 2 years ago by Vhyrro <[email protected]>
feat: add basic `tests.zig`
ed636e0dc421aa25c8f5a8e260aeb0d6c3e3d11f authored over 2 years ago by Vhyrro <[email protected]>
ed636e0dc421aa25c8f5a8e260aeb0d6c3e3d11f authored over 2 years ago by Vhyrro <[email protected]>
ref(build.zig): remove executable, convert to tests instead
2cc8d7e70162c17a8a4a675bd8e9dfc4e9e49853 authored over 2 years ago by Vhyrro <[email protected]>
2cc8d7e70162c17a8a4a675bd8e9dfc4e9e49853 authored over 2 years ago by Vhyrro <[email protected]>
ref: delete `main.zig` (soon to be replaced by `tests.zig`)
e28803781a717f123337e8a6cc1ab0d248f2bf4c authored over 2 years ago by Vhyrro <[email protected]>
e28803781a717f123337e8a6cc1ab0d248f2bf4c authored over 2 years ago by Vhyrro <[email protected]>
docs: update README.norg/README.md
364c566345580279144190cf824c00143b923550 authored over 2 years ago by Vhyrro <[email protected]>
364c566345580279144190cf824c00143b923550 authored over 2 years ago by Vhyrro <[email protected]>
feat: finalize `lib.zig`
54dfefe55409025dfd5c3143abed122be8fe4952 authored over 2 years ago by Vhyrro <[email protected]>
54dfefe55409025dfd5c3143abed122be8fe4952 authored over 2 years ago by Vhyrro <[email protected]>
ref(main.zig): make everything use the new `lib.zig` API
fed5c444f2a0716e234c7e06a17a70dc8257f258 authored over 2 years ago by Vhyrro <[email protected]>
fed5c444f2a0716e234c7e06a17a70dc8257f258 authored over 2 years ago by Vhyrro <[email protected]>
docs(tree.zig): remove `root()` as it's been implemented
9db2332f31b63d73f3523a29953190f6293ba7bf authored over 2 years ago by Vhyrro <[email protected]>
9db2332f31b63d73f3523a29953190f6293ba7bf authored over 2 years ago by Vhyrro <[email protected]>
fix: errors in `cursor.zig`
2c0582342b18a9783fad4165d54faf1cbe3b616d authored over 2 years ago by Vhyrro <[email protected]>
2c0582342b18a9783fad4165d54faf1cbe3b616d authored over 2 years ago by Vhyrro <[email protected]>
fix(build.zig): revert to stage1 compiler due to linking bugs in stage2
c440b1945d1df1c44c54dc646a9b3cd821a8d38d authored over 2 years ago by Vhyrro <[email protected]>
c440b1945d1df1c44c54dc646a9b3cd821a8d38d authored over 2 years ago by Vhyrro <[email protected]>
ref: enforce encoding for `parse_string`
9b02a8102ca34a57f566ac893d1a8e66bf3ee5e7 authored over 2 years ago by Vhyrro <[email protected]>
9b02a8102ca34a57f566ac893d1a8e66bf3ee5e7 authored over 2 years ago by Vhyrro <[email protected]>
fix: error in `tree.zig`
227323906a8f593ddd8b523a51c0e3e6ba2d1e9a authored over 2 years ago by Vhyrro <[email protected]>
227323906a8f593ddd8b523a51c0e3e6ba2d1e9a authored over 2 years ago by Vhyrro <[email protected]>
ref: make `node.zig` house an internal object versus a pointer
ecd7e4e631d97113da4700638f0acafef33addfb authored over 2 years ago by Vhyrro <[email protected]>
ecd7e4e631d97113da4700638f0acafef33addfb authored over 2 years ago by Vhyrro <[email protected]>
fix: more errors in node.zig || rename `Node.content()` to `Node.sexp()`
6d4ad55db581d5afde7a7dec357ef57f05f8c5a8 authored over 2 years ago by Vhyrro <[email protected]>
6d4ad55db581d5afde7a7dec357ef57f05f8c5a8 authored over 2 years ago by Vhyrro <[email protected]>
ref(main.zig): add new example
0d44f0e95ed9ce9bd30d8394168b518815317ae1 authored over 2 years ago by Vhyrro <[email protected]>
0d44f0e95ed9ce9bd30d8394168b518815317ae1 authored over 2 years ago by Vhyrro <[email protected]>
chore: update treeistter submodule
e4ce8017965eadd40e88b8dde3ec8024497d4275 authored over 2 years ago by Vhyrro <[email protected]>
e4ce8017965eadd40e88b8dde3ec8024497d4275 authored over 2 years ago by Vhyrro <[email protected]>
feat: reimplement `parse_string` function
45a944496ef94ec2709ac59d11dad61773dbbb61 authored over 2 years ago by Vhyrro <[email protected]>
45a944496ef94ec2709ac59d11dad61773dbbb61 authored over 2 years ago by Vhyrro <[email protected]>
fix: bunch of errors in `node.zig`
a1ac03c44796a6dc4ce380b86a735306690a38de authored over 2 years ago by Vhyrro <[email protected]>
a1ac03c44796a6dc4ce380b86a735306690a38de authored over 2 years ago by Vhyrro <[email protected]>
fix: errors in tree.zig
e4946c769e43f8c1fb76c4eff2ac54f50a5e092c authored over 2 years ago by Vhyrro <[email protected]>
e4946c769e43f8c1fb76c4eff2ac54f50a5e092c authored over 2 years ago by Vhyrro <[email protected]>
ref: use `TSLanguage` instead of `*api.TSLanguage`
2fb88340303394e4dff136143daf6f8bbc9ac8a8 authored over 2 years ago by Vhyrro <[email protected]>
2fb88340303394e4dff136143daf6f8bbc9ac8a8 authored over 2 years ago by Vhyrro <[email protected]>
chore: regenerate `out.zig`
9d21af807a35352d54c89bfbae0d2355fb237884 authored over 2 years ago by Vhyrro <[email protected]>
9d21af807a35352d54c89bfbae0d2355fb237884 authored over 2 years ago by Vhyrro <[email protected]>
ref: remove makefile and link directly to `.c` files
a1a8864fcbace54e2fe4daad103f12368134a3ed authored over 2 years ago by Vhyrro <[email protected]>
a1a8864fcbace54e2fe4daad103f12368134a3ed authored over 2 years ago by Vhyrro <[email protected]>
feat: add `root()` function to tree.zig
dea58e6b0765db9cb055602c24a60e2696277977 authored over 2 years ago by Vhyrro <[email protected]>
dea58e6b0765db9cb055602c24a60e2696277977 authored over 2 years ago by Vhyrro <[email protected]>
fix: issues in node.zig
b6de1d7bd568ac2a6eb67df15c773460244ddd62 authored over 2 years ago by Vhyrro <[email protected]>
b6de1d7bd568ac2a6eb67df15c773460244ddd62 authored over 2 years ago by Vhyrro <[email protected]>
feat(parser.zig): allow one parser per language by default, add `parse_string` function
16a9b0e08831b36c3f9207f2ebae2fae1210e8a7 authored over 2 years ago by Vhyrro <[email protected]>
16a9b0e08831b36c3f9207f2ebae2fae1210e8a7 authored over 2 years ago by Vhyrro <[email protected]>
ref(tree.zig): remove constness from internal pointer and add `init()` function
27f69fc90e3c298bcef09956f4c1764587482d4c authored over 2 years ago by Vhyrro <[email protected]>
27f69fc90e3c298bcef09956f4c1764587482d4c authored over 2 years ago by Vhyrro <[email protected]>
ref: update main.zig to be up to date with the latest changes
5ce32a83d89025a089d56395e8f212f733c840f2 authored over 2 years ago by Vhyrro <[email protected]>
5ce32a83d89025a089d56395e8f212f733c840f2 authored over 2 years ago by Vhyrro <[email protected]>
feat: add Language.from() function
d2def4daad3cba48c0eefe939f2041884c450fe4 authored over 2 years ago by Vhyrro <[email protected]>
d2def4daad3cba48c0eefe939f2041884c450fe4 authored over 2 years ago by Vhyrro <[email protected]>
fix: update Makefile to correctly compile the treesitter library
d703b7789b16b04791143044f25a1e116003505d authored over 2 years ago by Vhyrro <[email protected]>
d703b7789b16b04791143044f25a1e116003505d authored over 2 years ago by Vhyrro <[email protected]>
ref: add `tree-sitter.a` to .gitignore
c7bb321a37b228813cc1da2286bb74f0a655b0e3 authored over 2 years ago by Vhyrro <[email protected]>
c7bb321a37b228813cc1da2286bb74f0a655b0e3 authored over 2 years ago by Vhyrro <[email protected]>
ref: link against `tree-sitter.a` vs `tree-sitter.o`
596298a17308eaba41a6e92a49072c7f24a4bbb5 authored over 2 years ago by Vhyrro <[email protected]>
596298a17308eaba41a6e92a49072c7f24a4bbb5 authored over 2 years ago by Vhyrro <[email protected]>
fix: many errors in parser.zig
84f1061a6002c261e2240143713c281063f91dbb authored over 2 years ago by Vhyrro <[email protected]>
84f1061a6002c261e2240143713c281063f91dbb authored over 2 years ago by Vhyrro <[email protected]>
fix: many errors in language.zig
242fc2d3bd1d1b87b80a53e2db1831ea16aef086 authored over 2 years ago by Vhyrro <[email protected]>
242fc2d3bd1d1b87b80a53e2db1831ea16aef086 authored over 2 years ago by Vhyrro <[email protected]>
chore: clean up lib.zig
93d874f42756ae6403af54da356d8e97a29ff7fd authored over 2 years ago by Vhyrro <[email protected]>
93d874f42756ae6403af54da356d8e97a29ff7fd authored over 2 years ago by Vhyrro <[email protected]>
fix: link include directory when building the treesitter library
b037a845fa03a235116404186e68a3539beb007b authored over 2 years ago by Vhyrro <[email protected]>
b037a845fa03a235116404186e68a3539beb007b authored over 2 years ago by Vhyrro <[email protected]>
feat: update build.zig with run step
7caa19089ff51f894007bfd6dde74549667a2606 authored over 2 years ago by Vhyrro <[email protected]>
7caa19089ff51f894007bfd6dde74549667a2606 authored over 2 years ago by Vhyrro <[email protected]>
feat: add makefile to compile both the parser and the treesitter library
ed277c644252cd39d58cf142b57e24cecad013b9 authored over 2 years ago by Vhyrro <[email protected]>
ed277c644252cd39d58cf142b57e24cecad013b9 authored over 2 years ago by Vhyrro <[email protected]>
feat: add `tree-sitter-json` submodule
eb59cd5401b6855f5b8d4b4c268cbe99d716c0c3 authored over 2 years ago by Vhyrro <[email protected]>
eb59cd5401b6855f5b8d4b4c268cbe99d716c0c3 authored over 2 years ago by Vhyrro <[email protected]>
ref(parser.zig): small typo
6e63a881625d13504f205c41715d211a0731d64c authored over 2 years ago by Vhyrro <[email protected]>
6e63a881625d13504f205c41715d211a0731d64c authored over 2 years ago by Vhyrro <[email protected]>
feat: add `cursor.zig`
391f358d7808fc21ad12096030cee8e8bed1821c authored over 2 years ago by Vhyrro <[email protected]>
391f358d7808fc21ad12096030cee8e8bed1821c authored over 2 years ago by Vhyrro <[email protected]>
feat: add `Node.edit()` function
2778b11d803cde65fe92e729655b5fde3bb14796 authored over 2 years ago by Vhyrro <[email protected]>
2778b11d803cde65fe92e729655b5fde3bb14796 authored over 2 years ago by Vhyrro <[email protected]>
feat: almost finish `node.zig`
d14665157fbf1f5d7ac715d81f86a9f093ab0495 authored over 2 years ago by Vhyrro <[email protected]>
d14665157fbf1f5d7ac715d81f86a9f093ab0495 authored over 2 years ago by Vhyrro <[email protected]>
chore: format with `zig fmt`
5c8e998c56dd57599b9a2694264d317cb2ddf0e0 authored over 2 years ago by Vhyrro <[email protected]>
5c8e998c56dd57599b9a2694264d317cb2ddf0e0 authored over 2 years ago by Vhyrro <[email protected]>
docs(parser): document `Parser.reset` function
31ead5561ecf4bd8b84b2581259f1c54d4bd92b1 authored over 2 years ago by NTBBloodbath <[email protected]>
31ead5561ecf4bd8b84b2581259f1c54d4bd92b1 authored over 2 years ago by NTBBloodbath <[email protected]>
feat: add `node.zig`
d0179cd35d355ae56e6106fd5ec7703da61d7367 authored over 2 years ago by Vhyrro <[email protected]>
d0179cd35d355ae56e6106fd5ec7703da61d7367 authored over 2 years ago by Vhyrro <[email protected]>
ref: make the tree.zig file compile by putting it in lib.zig
7516baf502b216dc969d5172038766da57518fea authored over 2 years ago by Vhyrro <[email protected]>
7516baf502b216dc969d5172038766da57518fea authored over 2 years ago by Vhyrro <[email protected]>
feat: extend `tree.zig`
e2f353ec963a96325499f3d60b7350393e51bd20 authored over 2 years ago by Vhyrro <[email protected]>
e2f353ec963a96325499f3d60b7350393e51bd20 authored over 2 years ago by Vhyrro <[email protected]>
fix: make SymbolType reflect the values in `out.zig`
91b5c80bee5ba858b5c23455f22ddedb5e57bf16 authored over 2 years ago by Vhyrro <[email protected]>
91b5c80bee5ba858b5c23455f22ddedb5e57bf16 authored over 2 years ago by Vhyrro <[email protected]>
feat: finalize `language.zig`
629dc2ddf16f869aaea0f22c1a742766d2a0dbec authored over 2 years ago by Vhyrro <[email protected]>
629dc2ddf16f869aaea0f22c1a742766d2a0dbec authored over 2 years ago by Vhyrro <[email protected]>
feat: add `field.zig`
428d97cd946483e65c4d0ebbb68c1919b003dd7b authored over 2 years ago by Vhyrro <[email protected]>
428d97cd946483e65c4d0ebbb68c1919b003dd7b authored over 2 years ago by Vhyrro <[email protected]>
ref: clean up src/language.zig
ca15bd19b06ed61ae29b4062eeed23a67e483a9c authored over 2 years ago by Vhyrro <[email protected]>
ca15bd19b06ed61ae29b4062eeed23a67e483a9c authored over 2 years ago by Vhyrro <[email protected]>
chore(tree): add a TODO comment about missing functions
2ef95a12e5bbcfb1032fb6aafa5ad71c9a6d9bb4 authored over 2 years ago by NTBBloodbath <[email protected]>
2ef95a12e5bbcfb1032fb6aafa5ad71c9a6d9bb4 authored over 2 years ago by NTBBloodbath <[email protected]>
feat(tree): add more wrapper functions as `deinit` and `get_language`
32278562bd326fba7a01a54a87170ad7d5895dee authored over 2 years ago by NTBBloodbath <[email protected]>
32278562bd326fba7a01a54a87170ad7d5895dee authored over 2 years ago by NTBBloodbath <[email protected]>
refact!(parser): rename `new` and `delete` functions to match Zig conventions.
They are now called `init` and `deinit` respectively.
9a2fd9de928dab1165b9bc634c88adb77be24771 authored over 2 years ago by NTBBloodbath <[email protected]>
docs: add documentation to Zig source code (round 2)
0e3ad7f1df77a040b6a0744c0e29e394e0ae9251 authored over 2 years ago by NTBBloodbath <[email protected]>
0e3ad7f1df77a040b6a0744c0e29e394e0ae9251 authored over 2 years ago by NTBBloodbath <[email protected]>
docs: add documentation to Zig source code
e970d321c505935c461ffe3ecfcac9736d30b2fa authored over 2 years ago by NTBBloodbath <[email protected]>
e970d321c505935c461ffe3ecfcac9736d30b2fa authored over 2 years ago by NTBBloodbath <[email protected]>
feat(parser): add documentation
fix(parser): do not return a boolean on `Parser.set_language` function
8b4ff94936e23cb76415185b25fe1fc58daf7e91 authored over 2 years ago by NTBBloodbath <[email protected]>
feat: add extra functions to `Symbol` and `Language`
9677259993095b544e886744edda2e0ab362a897 authored over 2 years ago by Vhyrro <[email protected]>
9677259993095b544e886744edda2e0ab362a897 authored over 2 years ago by Vhyrro <[email protected]>
fix(parser): small `set_language` lang param type fix
dcf18b00a7213aa53abdd899c1061dbc2f906c47 authored over 2 years ago by NTBBloodbath <[email protected]>
dcf18b00a7213aa53abdd899c1061dbc2f906c47 authored over 2 years ago by NTBBloodbath <[email protected]>
feat: add initial wrapper around `TSParser`
0e6e02f62c36757123991663c172a3177aab10be authored over 2 years ago by NTBBloodbath <[email protected]>
0e6e02f62c36757123991663c172a3177aab10be authored over 2 years ago by NTBBloodbath <[email protected]>
feat: add barebones wrapper around `TSTree`
9606aff35af5e8fa0dac20e3942bbb054c652e69 authored over 2 years ago by NTBBloodbath <[email protected]>
9606aff35af5e8fa0dac20e3942bbb054c652e69 authored over 2 years ago by NTBBloodbath <[email protected]>
feat: add `Symbol` struct and add some extras
eafe58e80b7d76da36021a285d38316b6c1b97f6 authored over 2 years ago by Vhyrro <[email protected]>
eafe58e80b7d76da36021a285d38316b6c1b97f6 authored over 2 years ago by Vhyrro <[email protected]>
feat: add very basic `TSLanguage` wrapper
c0c1e6a2063464826ccf29b37a19722565597d36 authored over 2 years ago by Vhyrro <[email protected]>
c0c1e6a2063464826ccf29b37a19722565597d36 authored over 2 years ago by Vhyrro <[email protected]>
chore: add gitignore
f3652d5fc1a531c0f2fc0c04ee58384af6addc04 authored over 2 years ago by NTBBloodbath <[email protected]>
f3652d5fc1a531c0f2fc0c04ee58384af6addc04 authored over 2 years ago by NTBBloodbath <[email protected]>
chore: add license
e7606b0b6c0a9b7ec23d3cf3c133b1cdf159adb4 authored over 2 years ago by Vhyrro <[email protected]>
e7606b0b6c0a9b7ec23d3cf3c133b1cdf159adb4 authored over 2 years ago by Vhyrro <[email protected]>
docs: add readme
7e1d9446941c8ae20152e1fb29cf163b012c66d4 authored over 2 years ago by Vhyrro <[email protected]>
7e1d9446941c8ae20152e1fb29cf163b012c66d4 authored over 2 years ago by Vhyrro <[email protected]>
feat: initial commit (kinda messy)
867c2d6d0937e857bbb6a24ddcc1ae124a2ee640 authored over 2 years ago by Vhyrro <[email protected]>
867c2d6d0937e857bbb6a24ddcc1ae124a2ee640 authored over 2 years ago by Vhyrro <[email protected]>