How to Use Tree Sitter Queries in Python

Опубликовано: 23 Май 2026
на канале: Michael Breitung
6,528
151

In this Python Tutorial I show you in detail how to use Tree Sitter to parse source code. I explain how to use Tree Sitter Queries to extract specific parts from a parsed Syntax Tree and how to refine the results.

★☆★ Chapters ★☆★

00:00 Introduction
01:41 Tree Sitter Queries
08:35 Tree Sitter Python Setup
10:42 Code Walk-Through
12:06 Specific Queries
22:58 Conclusion


★☆★ Python Tree Sitter Demo ★☆★

https://github.com/MichaelBreitung/tr...


★☆★ my Github ★☆★

https://github.com/MichaelBreitung/


★☆★ Links ★☆★

Tree Sitter: https://tree-sitter.github.io/tree-si...
Tree Sitter Queries: https://tree-sitter.github.io/tree-si...

★☆★ my Landscape Photography Channel ★☆★

   / mibreit  


★☆★ homepage★☆★

https://www.mibreit-photo.com

#python #pythonprogramming