Beaglefoot/tree-sitter-awk

GNU AWK grammar for tree-sitter

26

stars

142

commits

JavaScript

primary language

Sep 24, 2025

updated

awk
gawk
parser
tree-sitter
Browse cluster: Tree-sitter language parsers

README

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

Contributors

Beaglefoot

140 commits

amaanq

2 commits

Beaglefoot/tree-sitter-awk

GNU AWK grammar for tree-sitter

26

stars

142

commits

JavaScript

primary language

Sep 24, 2025

updated

awk
gawk
parser
tree-sitter
Browse cluster: Tree-sitter language parsers

README

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

Contributors

Beaglefoot

140 commits

amaanq

2 commits

Languages

JavaScript

70.1%

C

22.9%

Scheme

6.0%

Shell

1.0%