add nix infrastructure to build the grammar

This commit is contained in:
2023-07-04 07:20:42 +00:00
parent edd60ed689
commit ec29df4a13
6 changed files with 118 additions and 0 deletions

View File

@@ -1,4 +1,15 @@
this will be a tree-sitter implementation for `nix-shell` files.
try one of the following:
- `nix build` => build the parser
- `nix develop` => manually/interactively generate the parser
- `tree-sitter generate`
non-flake equivalents:
- `nix-build`
- `nix-shell`
99% of this repository is code-gen'd garbage.
to recreate it or update it, follow this guide:
<https://tree-sitter.github.io/tree-sitter/creating-parsers>