tree sitter foreign function interface
Motivation and Context
use typescript cst in LIGO.
Description
add ocaml types / foreign function interface for tree sitter and tree sitter typescript c library. The api for tree sitter is available here https://github.com/tree-sitter/tree-sitter/blob/master/lib/include/tree_sitter/api.h Please run the tree_sitter_example/example.ml to verify it works.
using nix, run the following commands to build and run
dune build
dune exec lib/tree_sitter_example/example.exe
Component
-
compiler -
website -
webide -
vscode-plugin -
debugger
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to not work as expected) -
Performance improvement (non-breaking change that improves performance) -
None (change with no changelog)
Changelog
Add tree-sitter and tree-sitter-typescript libraries
Checklist:
-
If a new syntax has been introduced, put a message on slack ligo-lsp -
Changes follow the existing coding style (use dune @fmt
to check). -
Tests for the changes have been added (for bug fixes / feature). -
Documentation has been updated. -
Changelog description has been added (if appropriate). -
Start titles under ## Changelog
section with #### (if appropriate). -
There is no image or uploaded file in changelog -
Examples in changed behaviour have been added to the changelog (for breaking change / feature).
Edited by Christian Rinderknecht
Merge request reports
Activity
added 1 commit
- 62e6c8d8 - feat(nix): build clib for tree-sitter-typescript
added 6 commits
-
ef5a946c...9eb1fcc0 - 2 commits from branch
dev
- 00343efa - feat(tree-sitter): add tree sitter bindings
- e087621e - feat(tree-sitter): attempt to statically link
- b9360e99 - feat(nix): build clib for tree-sitter-typescript
- 80e496dc - feat(tree-sitter): add more examples
Toggle commit list-
ef5a946c...9eb1fcc0 - 2 commits from branch
requested review from @alistair.obrien
assigned to @leo.unoki
added 12 commits
-
f0f13750...bd782ec9 - 6 commits from branch
dev
- fd3b00c3 - feat(tree-sitter): add tree sitter bindings
- c2d3cabd - feat(tree-sitter): attempt to statically link
- 8dda8f12 - feat(nix): build clib for tree-sitter-typescript
- 83411fd1 - feat(tree-sitter): add more examples
- 634d3d74 - feat(tree-sitter): add node retrieval functions
- 9a6d067f - fix(tree-sitter): silence c warning
Toggle commit list-
f0f13750...bd782ec9 - 6 commits from branch
mentioned in commit ba244eb8
aborted automatic add to merge train because the source branch was updated. Learn more.
added 2 commits
mentioned in commit 73c6fc4b
Please register or sign in to reply