0.2.1 • Published 10 months ago
@polychromatist/tree-sitter-luau v0.2.1
tree-sitter-luau
These are the generated node and web bindings for tree-sitter-luau, my tree-sitter parser for the Luau scripting language.
Usage
node
const Parser = require("tree-sitter");
const Luau = require("@polychromatist/tree-sitter-luau");
const parser = new Parser();
parser.setLanguage(Luau);
// const tree = parser.parse("print(`abc{string.char(100)}efg`)");
WebAssembly
This package contains a .wasm
module that can be used with the WebAssembly bindings.
Note about Documentation
As of October 2024, node-tree-sitter is poorly documented. However, the interface declaration and the tests can be used as ad hoc references.