| Crates.io | tree-sitter-dart |
| lib.rs | tree-sitter-dart |
| version | 0.0.4 |
| created_at | 2023-01-19 16:50:03.667522+00 |
| updated_at | 2024-05-07 00:29:54.169231+00 |
| description | dart grammar for the tree-sitter parsing library |
| homepage | |
| repository | https://github.com/ast-grep/tree-sitter-dart |
| max_upload_size | |
| id | 762698 |
| size | 5,292,038 |
This is a tree-sitter grammar written for the dart programming language. I attempted to adhere as closely as possible to the dart language spec. Initially I started with a copy of the tree-sitter Java grammar which is why there may be a few relics included in here. For the sake of simplifying the syntax tree, many items were made inlined with tree-sitter's "underscore" method of writing rules.
npm install (first time)npm run build_init (first time) npm run build (subsequent times)npm run testtree-sitter highlight test/highlight/types.darttree-sitter test -f 'testcasefilter'tree-sitter test -f 'dart string literals'tree-sitter parse path/to/file.dart