-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee00cd9
commit a219f57
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Custom Language Support | ||
|
||
This is experimental! See https://github.com/ast-grep/ast-grep.github.io/issues/98 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Deep Dive in Pattern | ||
|
||
## What is TreeSitter | ||
|
||
## Core Concepts | ||
A list of ast-grep's concepts | ||
|
||
### Textual vs Structural | ||
TODO | ||
### AST vs CST | ||
TODO | ||
### Named nodes vs Unnamed nodes | ||
TODO | ||
### Kind vs Field | ||
TODO | ||
### Significant vs Trivial | ||
TODO | ||
|
||
## Match Algorithm | ||
|
||
In descending order of strict-ness | ||
|
||
* CST: all nodes are matched | ||
* Smart: all nodes except source trivial nodes are matched. | ||
* Significant: only significant nodes are matched | ||
* AST: only ast nodes are matched | ||
* Lenient: ast-nodes excluding comments are matched | ||
|
||
Currently ast-grep only supports cst. |