Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/beaglefoot/tree-sitter-awk
GNU AWK grammar for tree-sitter
https://github.com/beaglefoot/tree-sitter-awk
awk gawk parser tree-sitter
Last synced: 12 days ago
JSON representation
GNU AWK grammar for tree-sitter
- Host: GitHub
- URL: https://github.com/beaglefoot/tree-sitter-awk
- Owner: Beaglefoot
- License: mit
- Created: 2021-07-11T14:03:15.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-04T20:50:08.000Z (2 months ago)
- Last Synced: 2024-10-28T09:23:26.659Z (16 days ago)
- Topics: awk, gawk, parser, tree-sitter
- Language: JavaScript
- Homepage:
- Size: 5.7 MB
- Stars: 19
- Watchers: 3
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
tree-sitter-awk
================[![tests](https://github.com/Beaglefoot/tree-sitter-awk/actions/workflows/tests.yml/badge.svg)](https://github.com/Beaglefoot/tree-sitter-awk/actions/workflows/tests.yml)
[![npm](https://img.shields.io/npm/v/tree-sitter-awk)](https://www.npmjs.com/package/tree-sitter-awk)GNU AWK grammar for [tree-sitter](https://github.com/tree-sitter/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 | yarn -s trim
You can simplify process further by piping result into `xclip` or alike.
### References
* [GAWK Man page](https://www.man7.org/linux/man-pages/man1/gawk.1.html)
* [Original Bison grammar](http://git.savannah.gnu.org/cgit/gawk.git/tree/awkgram.y)