@ast-grep/lang-lua
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

ast-grep napi language for lua

Installation

In a pnpm project, run:

pnpm install @ast-grep/lang-lua
pnpm install @ast-grep/napi
# install the tree-sitter-cli if no prebuild is available
pnpm install @tree-sitter/cli --save-dev

Usage

import lua from '@ast-grep/lang-lua'
import { registerDynamicLanguage, parse } from '@ast-grep/napi'

registerDynamicLanguage({ lua })

const sg = parse('lua', `your code`)
sg.root().kind()

Readme

Keywords

Package Sidebar

Install

npm i @ast-grep/lang-lua

Weekly Downloads

0

Version

0.0.2

License

ISC

Unpacked Size

661 kB

Total Files

17

Last publish

Collaborators

  • herringtondarkholme