Skip to content

Commit

Permalink
fix: add pattern parsing doc
Browse files Browse the repository at this point in the history
  • Loading branch information
HerringtonDarkholme committed Sep 21, 2024
1 parent 645fe78 commit 011e849
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions website/advanced/pattern-parse.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Parsing a pattern in ast-grep involves these keys steps:
3. Extract effective AST nodes based on builtin heuristics or user provided [selector](/reference/rule.html#pattern).
4. Detect AST with wildcard text and convert them into [meta variables](/guide/pattern-syntax.html#meta-variable).

![image](/image/parse-pattern.jpg)

Let's dive deep into each of these steps.

## Pattern is AST based
Expand Down
Binary file added website/public/image/parse-pattern.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 011e849

Please sign in to comment.