An incremental parsing system for programming tools https://tree-sitter.github.io
Find a file
Steven Kalt d35efd4608
feat(cli): support building WASM via podman
Previously, `tree-sitter build-wasm` had the ability to build WASM
by using docker to pull in an image with a complete emscripten toolchain.
This commit adds the ability to use podman to do the same thing.

Using podman requires two notable changes:
1. Using the fully-qualified image name. Docker defaults to prepending
    `docker.io` to the image name, but podman does not.
2. Podman will mount the `/src/` volume as belonging to root unless
  `--userns=keep-id` is passed. I think podman's different
  volume-ownership is related to podman's daemonless execution and
  `--uidmap` functionality, but I'm not 100% sure.

To test, I ran
```sh
script/fetch-fixtures
script/generate-fixtures
script/generate-fixtures-wasm # <- the important one!
```

which worked as well as the docker version.
2024-01-29 00:50:32 -05:00
.github 0.20.9 2024-01-25 15:05:17 -05:00
cli feat(cli): support building WASM via podman 2024-01-29 00:50:32 -05:00
docs feat(cli): support building WASM via podman 2024-01-29 00:50:32 -05:00
highlight Add a CLI feature flag for wasm runtime support 2023-10-31 16:56:11 -07:00
lib feat(cli): support building WASM via podman 2024-01-29 00:50:32 -05:00
script feat(cli): support building WASM via podman 2024-01-29 00:50:32 -05:00
tags Add a CLI feature flag for wasm runtime support 2023-10-31 16:56:11 -07:00
test Avoid a '../' #include in test scanner 2023-11-04 12:26:00 -07:00
.gitattributes fix: specify eof should be lf for windows cicd 2024-01-25 20:12:36 -05:00
.gitignore fix: make install should install files with default perms 2023-08-21 06:19:49 +03:00
build.zig Updated build.zig to work with 0.11.0 2023-08-25 19:18:46 +03:00
Cargo.lock 0.20.9 2024-01-25 15:05:17 -05:00
Cargo.toml Keep default release profile with default settings 2023-11-28 05:14:36 +02:00
CONTRIBUTING.md Tweak readmes 2020-05-12 16:16:48 -07:00
FUNDING.json chore: add FUNDING.json 2023-11-08 00:08:07 -05:00
LICENSE chore: fix years in the license file 2023-04-16 23:39:08 +03:00
Makefile Merge branch 'master' into wasm-language 2023-10-27 12:11:43 +01:00
Package.swift Added Swift Package Manager entry point. 2023-07-12 11:37:04 -04:00
README.md docs: update badges; fix markdown lint complains 2023-04-16 23:39:08 +03:00
tree-sitter.pc.in Add a simple Makefile-based build system. 2020-04-21 23:49:19 -04:00

tree-sitter

CICD badge DOI

Tree-sitter is a parser generator tool and an incremental parsing library. It can build a concrete syntax tree for a source file and efficiently update the syntax tree as the source file is edited. Tree-sitter aims to be:

  • General enough to parse any programming language
  • Fast enough to parse on every keystroke in a text editor
  • Robust enough to provide useful results even in the presence of syntax errors
  • Dependency-free so that the runtime library (which is written in pure C) can be embedded in any application