https://github.com/nvim-neorg/tree-sitter-norg2
Attempt at a second generation parser for the Norg format.
https://github.com/nvim-neorg/tree-sitter-norg2
Last synced: about 1 year ago
JSON representation
Attempt at a second generation parser for the Norg format.
- Host: GitHub
- URL: https://github.com/nvim-neorg/tree-sitter-norg2
- Owner: nvim-neorg
- Created: 2022-10-19T11:24:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-04T16:53:08.000Z (about 3 years ago)
- Last Synced: 2024-04-14T05:31:36.946Z (about 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 8.16 MB
- Stars: 10
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Treesitter parser for [Norg](https://github.com/nvim-neorg/norg-specs)
This repository is an attempt at building on the initial [tree-sitter-norg](https://github.com/nvim-neorg/tree-sitter-norg)
parser in order to both decrease the size and increase the speed of the parser.
Upgrades from the old parser include:
- Grammar-based -- the old parser almost entirely relied on a C++ `scanner.cc`,
which hindered error handling and parsing efficiency.
- Lightweight - the parser weights 4x less than the first generation parser,
greatly thanks to a smarter design and a heavier reliance on the grammar.
Thanks to its smaller size, the parser should be embeddable almost anywhere.