Skip to content

Commit

Permalink
feat: add more skeletons
Browse files Browse the repository at this point in the history
  • Loading branch information
HerringtonDarkholme committed May 25, 2023
1 parent ee00cd9 commit a219f57
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
3 changes: 3 additions & 0 deletions website/advanced/custom-language.md
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
29 changes: 29 additions & 0 deletions website/advanced/match-algorithm.md
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.

0 comments on commit a219f57

Please sign in to comment.