!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! I should clarify that this module is NOT a standalone tree-sitter module. It is supossed to be used with an upcoming tree-sitter intergration in Emacs core. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! To build the dynamic module for a particular tree-sitter language definition, run ./build.sh <language> e.g., ./build.sh html The dynamic module will be in dist directory To build all modules at once, run ./batch.sh
Build a tree-sitter dynamic module
Overview
You might also like...
Surface grammar for Tree-sitter
Tree-sitter Surface Tree-sitter grammar and parser for Surface, the server-side rendering component library for Phoenix. Supports the Surface 0.5+ tem
A tree-sitter grammar for the Gleam programming language
tree-sitter-gleam A tree-sitter grammar for the Gleam programming language This is, presently, very much a work-in-progress. DONE Parsing import state
A tree-sitter grammar for `git diff` output
tree-sitter-git-diff A tree-sitter grammar for git diffs. Status Working, but needs more testing. Examples Highlighting a .diff file: Injecting this g
Languages for the Tree-sitter parser generator wrapped in Swift packages
TreeSitterLanguages Languages for the Tree-sitter parser generator wrapped in Swift packages. Motivation There are two reasons this package exists: As
Promela grammar for tree-sitter
tree-sitter-promela Promela grammar for tree-sitter. Motivation Promela is a language used for specifying models, especially in distributed systems co
Scheme grammar for tree-sitter
tree-sitter-scheme Scheme grammar for tree-sitter. Status tree-sitter-scheme should work on a superset of Scheme. The standards are expected to suppor
FastDynamicCast - Fast dynamic cast in C++ for MSVC, outperforming the regular dynamic cast by up to 25 times
Fast dynamic cast This is a single header, dynamic cast implementation which outperforms the regular dynamic_cast by up to 25 times. Works on MSVC 201
This repository provides implementation of an incremental k-d tree for robotic applications.
ikd-Tree ikd-Tree is an incremental k-d tree designed for robotic applications. The ikd-Tree incrementally updates a k-d tree with new coming points o
Algo-Tree is a collection of Algorithms and data structures which are fundamentals to efficient code and good software design. Creating and designing excellent algorithms is required for being an exemplary programmer. It contains solutions in various languages such as C++, Python and Java.
Algo-Tree 🌲 Algo-Tree is a collection of Algorithms and data structures which are fundamentals to efficient code and good software design. Creating a
Comments
-
Fix the TypeScript / TSX support.
This is another approach to building both TypeScript and TSX. It seems that it requires a little less change than #4 , but it is pretty subjective. Either way would be fine with me.
-
Add rust and cpp and alphabetize the languages list
I also reworded the statement in the README since the languages are defined clearly in
batch.sh
and we avoid having to maintain 2 lists. Can drop that commit if you want.BTW I noticed that the typescript module doesn't seem to build like the others. I don't see any typescript
.so
file indist
and in the root directory I see atree-sitter-typescript
directory. There is adist
directory inside thetree-sitter-typescript
directory with the.so
file. Is that expected?Another thing: I see there are old build and batch files. Any reason why they're being kept around or can they be removed?
-
Document how to use this repo with straight
Hi, thanks for this repo :-).
I'm currently just experimenting with the new builtin treesit module. I've discovered I can build the tree-sitter modules directly from source using this package and straight:
(use-package tree-sitter-module :straight (tree-sitter-module :type git :host github :repo "casouri/tree-sitter-module" :pre-build (("./batch.sh")) :files ("dist/*.so" "dist/*.dll" "dist/*.dylib")) :init ;; Search for tree-sitter modules in this packages build directory. (with-eval-after-load 'treesit (add-to-list 'treesit-extra-load-path (straight--build-dir "tree-sitter-module"))))
I thought I'd share this back and ask if you could open up the wiki so I can drop it there as well.
-
Fix copying and removing of typescript files
Fixes the issue where the tsx.so aren't copied as lang typescript does not exist at point. also fixes the issue where the typescript folder stays around.
Releases(v2.1)
-
v2.1(Sep 8, 2022)
This release includes two more languages: Typescript and C#.
Source code(tar.gz)
Source code(zip)
libs-linux-x64.zip(532.56 KB)
libs-macos-x64.zip(530.96 KB)
-
v2,0(Sep 24, 2021)
Now we changed from wrapping each language into an Emacs module to loading the language library directly. Here is some pre-built libraries.
Source code(tar.gz)
Source code(zip)
libs-linux-x64.zip(244.04 KB)
libs-macos-x64.zip(231.73 KB)
-
v1.0(Aug 24, 2021)
Download the zip file, put module files under
Source code(tar.gz)load-path
, and(require 'tree-sitter-<lang>)
.
Source code(zip)
modules-linux-x64.zip(264.33 KB)
modules-macos-x64.zip(251.47 KB)
This is like Inverting Binary Tree, but instead of a Binary Tree it's a File Tree.
Invert File Tree in C++ This is like Inverting Binary Tree, but instead of the Binary Tree it's a File Tree. This is intended as a simple exercise to
SQL grammar for tree sitter
tree-sitter-sql I want to do something fun at work since we have stuff like this in Go: const hoverDocumentQuery = ` -- source: enterprise/internal/co
Tree sitter grammar for Svelte
Tree-sitter-svelte Tree-sitter grammar for svelte Install npm i tree-sitter-svelte tree-sitter Usage To get started with exploring the grammar in a w
A tree-sitter grammar for go.mod files
tree-sitter-go-mod tree-sitter grammar for go.mod files. Status The grammar is fairly small, and has been working well for highlighting for me. I expe
A tree-sitter grammar for HCL (HashiCorp Configuration Language), used by projects such as Terraform.
tree-sitter-hcl tree-sitter grammar for HCL (HashiCorp Configuration Language) files. HCL is the configuration format used by projects such as Terrafo
A tree-sitter grammar for protocol buffer files (proto3).
tree-sitter-proto tree-sitter grammar for protocol buffer files (proto3 only). Status The grammar should be complete. I'm still working on the highlig
tree-sitter parser and syntax highlighter for the Dwarf Fortress raw language
tree-sitter-dfraw A simple language parser and highlighter made with tree-sitter tokyonight nightfly Using with nvim-treesitter Please refer to the ad
HEEx grammer for Tree-sitter
Tree-sitter HEEx Tree-sitter grammar and parser for HEEx, the HTML-aware and component-friendly extension of EEx for Phoenix. For Surface support, see
Org grammar for tree-sitter
tree-sitter-org Unstable: This build will change. Org grammar for tree-sitter. It is not meant to implement emacs' orgmode parser, but to implement a
Golang template grammar for tree-sitter
tree-sitter-go-template Golang templates grammar for tree-sitter. NeoVim integration using nvim-treesitter Add gotmpl parser following nvim-treesitter