Giter Club home page Giter Club logo

tree-sitter-wasms's Introduction

tree-sitter-wasms

Prebuilt WASM binaries for tree-sitter's language parsers. Forked from https://github.com/Menci/tree-sitter-wasm-prebuilt because I wanted to use GitHub Actions to automate publishing.

Installation

pnpm add tree-sitter-wasms
# or
yarn add tree-sitter-wasms
# or
npm install tree-sitter-wasms

Usage

import treeSitterRust from "tree-sitter-wasms/out/tree-sitter-rust.wasm"
parser.setLanguage(treeSitterCpp);

Supported Languages

Check https://unpkg.com/browse/tree-sitter-wasms@latest/out/ to see all supported languages, and manually download the wasm artifacts directly.

tree-sitter-wasms's People

Contributors

dependabot[bot] avatar gregoor avatar lemmy avatar menci avatar restlessronin avatar ret2libc avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

tree-sitter-wasms's Issues

per-lang packages

There currently is one major and one medium issue with this project:

The major one: I can't updated tree-sitter-cli until every grammar is updated to be compatible with a new breaking version of it (which happened sometime around 0.21-22, which is why we're on an old version).

The medium one: The package is 50mb in size already and it will grow with every added lang. I'm not sure if every consumer of it needs most of those langs (my use-cases actually does)

There is one, more or less simple, solution to these issues: I could publish the wasms separately, e.g.

import treeSitterRust from "@tree-sitter-wasms/rust/grammar.wasm"

For my use-case it would certainly add some code, but I think it'd be worth it. I'll probably not get to it right away, but it would be the future path for this project, if others agree.

@restlessronin @lemmy @ret2libc
(I hope you don't mind the tag, but you're the only users I know of)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.