npm.io
0.7.2 • Published 1 year ago

tree-sitter-awk

Licence
MIT
Version
0.7.2
Deps
2
Size
6.1 MB
Vulns
0
Weekly
0
Stars
27
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

tree-sitter-awk

tests npm

GNU AWK grammar for tree-sitter.

Development

Install the dependencies:

yarn

Although grammar is basically a JS file you can still benefit from types (references, go to implementation, renames...).

To build types in watch mode:

yarn types:watch

Test:

yarn test

To ease generating test results create a fragment code in some file and run:

npx tree-sitter parse <your_file> | yarn -s trim

You can simplify process further by piping result into xclip or alike.

References