-
-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Description
Introduction:
- introduction to ast-grep
- Why you need structural search
- what is ast? what is parser? how computer parse your code text
- introduction to tree-sitter
Basic:
- simple pattern
- multi-nodes match
$$$ - simple rule
- simple kind
- simple regex
- simple relational rule with stopBy: end
- use
and/any/not - use fix
Intermediate:
- Refine your pattern: pattern with context
- Refine your relational rule: stopBy & field
- utility rule: reusable ast-grep rule
- constraints: a simple way to constrain how metavar matches
- Use sgconfig to setup project
- use sg test to test your rules
- use ast-grep vscode and lsp
- use ast-grep playground to develop your rule
- how to develop and debug rule
- use ast-grep with AI
Advanced:
- Refine your pattern II: understand pattern syntax
- Refine your pattern III: understand how ast-grep matches and strictness
- utility rule II: recursion (use recursion to munch nodes)
- use fix II: expand your fix area
- transform: rewrite metavar
- transfomr II: rewriter for more advanced manipulation
- customize matched label
- ast-grep API usage
- use ast-grep CLI as a tool: JSON mode and stdin mode
- use custom language
- handling embedded code: languageInjection
- ast-grep limitation and decision tree
no language specific stuff like macro
no static analyssi
0xdevalias
Metadata
Metadata
Assignees
Labels
No labels