Tree-sitterとは? わかりやすく解説

Weblio 辞書 > 辞書・百科事典 > 百科事典 > Tree-sitterの意味・解説 

Tree-sitter

出典: フリー百科事典『ウィキペディア(Wikipedia)』 (2025/04/16 00:57 UTC 版)

Tree-sitter
作者 Max Brunsfeld
初版 2018年 (7年前) (2018)
最新版
0.25.3[1]  / 2025年3月5日 (42日前)
リポジトリ
プログラミング
言語
Rust, C言語
プラットフォーム クロスプラットフォーム
種別 パーサジェネレータ
ライセンス MIT License
公式サイト tree-sitter.github.io/tree-sitter/
テンプレートを表示

Tree-sitterパーサジェネレータ、増分解析ライブラリである。

概要

Tree-sitterは、ソースコードコンパイラインタプリタテキストエディタ静的アナライザで使用できる構文木に解析するために使用される[2][3]。コードをリアルタイムで編集しながら解析木を更新するための増分解析をサポートしており、コードを解析するための組み込みのS式クエリシステムを提供するため[4]、テキストエディタでの使用に特化している[5]

Tree-sitterと公式に統合されているテキストエディタには、Atom[6]GNU Emacs[7]Neovim[8]、Lapce[9]、Zed[10]、Helix[11]などがある。言語バインディングにより、GoHaskellJavaJavaScript(Node.jsおよびWASMを使用)、KotlinLuaOCamlPerlPythonRubyRustSwiftなどのプログラミング言語で使用できる。Tree-sitterパーサは、これらの言語やその他の多くの言語用に開発されている[12]GitHubは、Gitリポジトリでのブラウザ内シンボリックコードナビゲーションをサポートするためにTree-sitterを使用している[13]

Tree-sitterは、LR法の一種であるGLR法を使用している[14][15][13]

Tree-sitterはもともとGitHubによってAtomで使用するために開発され、2018年に初めてリリースされた[16][6]

関連項目

  • パーサジェネレータ一覧英語版

脚注

  1. ^ "Release 0.25.3"; 閲覧日: 2025年3月31日; 出版日: 2025年3月5日.
  2. ^ Introductory to Treesitter”. Blog Teknologi Umum. 2023年7月30日閲覧。
  3. ^ Petersen, Mickey. “How to Get Started with Tree-Sitter”. Mastering Emacs. 2023年10月30日閲覧。
  4. ^ Petersen, Mickey. “Tree Sitter and the Complications of Parsing Languages” (英語). Mastering Emacs. 2023年7月30日閲覧。
  5. ^ TreeSitter - the holy grail of parsing source code” (英語). symflower.com. 2023年7月30日閲覧。
  6. ^ a b Brunsfeld, Max (2018年10月31日). “Atom understands your code better than ever before” (英語). The GitHub Blog. 2023年7月30日閲覧。
  7. ^ GNU Emacs NEWS -- history of user-visible changes.”. 2025年2月20日閲覧。
  8. ^ Treesitter - Neovim docs”. neovim.io. 2023年7月30日閲覧。
  9. ^ lapce/CHANGELOG.md at f4747fbd306a4b8fda6927e37593bf23f4a1584b · lapce/lapce” (英語). GitHub. 2023年7月30日閲覧。
  10. ^ Zed - Code at the speed of thought”. Zed. 2023年7月30日閲覧。
  11. ^ Helix”. helix-editor.com. 2023年7月30日閲覧。
  12. ^ Tree-sitter|Introduction”. tree-sitter.github.io. 2023年7月30日閲覧。
  13. ^ a b Clem, Timothy; Thomson, Patrick (2021-08-31). “Static Analysis at GitHub: An experience report” (英語). Queue 19 (4): 42–67. doi:10.1145/3487019.3487022. ISSN 1542-7730. 
  14. ^ Nadeem, Ayman (2020年8月4日). “CodeGen: Semantic's improved language support system” (英語). The GitHub Blog. 2023年7月30日閲覧。
  15. ^ (英語) "Tree-sitter - a new parsing system for programming tools" by Max Brunsfeld, (14 October 2018), https://www.youtube.com/watch?v=Jes3bD6P0To 2023年7月30日閲覧。 . See 22:30 for Wagner influence and 29:27 for GLR implementation.
  16. ^ Krill, Paul (2018年3月16日). “What's new in GitHub's Atom text editor”. InfoWorld. 2023年10月30日閲覧。

外部リンク




英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  
  •  Tree-sitterのページへのリンク

辞書ショートカット

すべての辞書の索引

「Tree-sitter」の関連用語

Tree-sitterのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



Tree-sitterのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
ウィキペディアウィキペディア
All text is available under the terms of the GNU Free Documentation License.
この記事は、ウィキペディアのTree-sitter (改訂履歴)の記事を複製、再配布したものにあたり、GNU Free Documentation Licenseというライセンスの下で提供されています。 Weblio辞書に掲載されているウィキペディアの記事も、全てGNU Free Documentation Licenseの元に提供されております。

©2025 GRAS Group, Inc.RSS