Back to Tree Sitter

Pattern Matching with Queries

docs/src/using-parsers/queries/index.md

0.26.8397 B
Original Source

Pattern Matching with Queries

Code analysis often requires finding specific patterns in source code. Tree-sitter provides a simple pattern-matching language for this purpose, similar to what's used in its unit test system. This allows you to express and search for code structures without writing complex parsing logic.