tree-sitter/docs/src/using-parsers/queries/index.md
2024-12-24 20:54:59 -05:00

398 B

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.