Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Attempt to make a tree-sitter grammar for dart

License

NotificationsYou must be signed in to change notification settings

UserNobody14/tree-sitter-dart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Getting Started

  • Go to the project directory
  • runnpm install (first time)
  • runnpm run build_init (first time)npm run build (subsequent times)
  • runnpm run test

To test a single highlight file

  • runtree-sitter highlight test/highlight/types.dart

To test a single test file

  • runtree-sitter test -f 'testcasefilter'
  • for exampletree-sitter test -f 'dart string literals'

To show the output of a parse for a sample file (for example while debugging highlight issues)

  • runtree-sitter parse path/to/file.dart

About

Attempt to make a tree-sitter grammar for dart

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors15


[8]ページ先頭

©2009-2025 Movatter.jp