A tree-sitter grammar for Nim.
The goal is to parse a superset of Nim and create a syntax tree that can be easily ingested by tools.
Generating this parser take around 7GiB of memory. Any help in reducing the parser size is appreciated.
Right now the parser is capable of parsing most of Nim, but some "advanced" constructs are not supported due to size limitation.
The parser correctness has not been thoroughly tested.
Right now the parser is in early development. Node names and structures are expected to change drastically between releases.
The project is licensed under the Mozilla Public License version 2.0