This is a tree-sitter grammar written for the dart programming language. We attempt to adhere as closely as possible to the dart language spec. Initially it was 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.dartDart
45.9%
JavaScript
36.1%
GAP
13.5%
Tree-sitter Query
2.0%
HTML
1.3%
C
1.2%
This is a tree-sitter grammar written for the dart programming language. We attempt to adhere as closely as possible to the dart language spec. Initially it was 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.dartDart
45.9%
JavaScript
36.1%
GAP
13.5%
Tree-sitter Query
2.0%
HTML
1.3%
C
1.2%