Skip to content

unit-mesh/treesitter-artifacts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TreeSitter Artifacts

Wasm build package for https://github.com/unit-mesh/auto-dev-vscode

Online Testings

REQUIREMENTS

Follow https://tree-sitter.github.io/tree-sitter/contributing#building

To make changes to Tree-sitter, you should have:

  1. A C compiler, for compiling the core library and the generated parsers.
  2. A Rust toolchain, for compiling the Rust bindings, the highlighting library, and the CLI.
  3. Node.js and NPM, for generating parsers from grammar.js files.
  4. Either Emscripten, Docker, or podman for compiling the library to WASM.

macOS

  1. install emcc
brew install emscripten
  1. run build
pnpm build

HOW TO BUILD

pnpm i
pnpm build