Build a tree-sitter dynamic module

Overview
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
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
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
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
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
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.
Comments
  • Fix the TypeScript / TSX support.

    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.

    opened by tee3 3
  • Add rust and cpp and alphabetize the languages list

    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 in dist and in the root directory I see a tree-sitter-typescript directory. There is a dist directory inside the tree-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?

    opened by aclonegeek 3
  • Document how to use this repo with straight

    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.

    opened by mohkale 2
  • Fix copying and removing of typescript files

    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.

    opened by wkirschbaum 1
Releases(v2.1)
Owner
Yuan Fu
Computer science student. X rank squid.
Yuan Fu
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

Tsoding 12 Nov 23, 2022
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

TJ DeVries 22 Sep 10, 2022
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

Himujjal Upadhyaya 48 Dec 2, 2022
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

Camden Cheek 24 Dec 3, 2022
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

Mitchell Hashimoto 65 Nov 29, 2022
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

Mitchell Hashimoto 43 Nov 2, 2022
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

null 2 Apr 1, 2022
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

Connor Lay (Clay) 33 Dec 23, 2022
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

Emilia Simmons 161 Jan 7, 2023
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

Nikita Galaiko 28 Nov 30, 2022