You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/guide/introduction.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ head:
10
10
11
11
## Introduction
12
12
13
-
ast-grep is a new AST based tool for managing your code, at massive scale.
13
+
ast-grep is a new AST based tool to manage your code, at massive scale.
14
14
15
15
Using ast-grep can be as simple as running a single command in your terminal:
16
16
@@ -24,12 +24,14 @@ The command above will replace `var` statement with `let` for all <abbr title="a
24
24
25
25
ast-grep is a versatile tool for searching, linting and rewriting code in various languages.
26
26
27
-
***Search**: As a command line tool in your terminal, `ast-grep` can precisely search code based on AST, running through ten thousand files in sub seconds.
28
-
***Lint**: You can also use ast-grep as a linter. Thanks to the flexible rule configuration, adding a new customized rule is more intuitive and straightforward. It also has a pretty error reporting out of box
29
-
***Rewrite**: ast-grep provide jQuery like utility methods to traverse and manipulate syntax tree. Besides, you can also use operators to compose complex matching from simple patterns.
27
+
***Search**: As a _command line tool_ in your terminal, `ast-grep` can precisely search code _based on AST_, running through ten thousand files in sub seconds.
28
+
***Lint**: You can use ast-grep as a linter. Thanks to the flexible rule system, adding a new customized rule is intuitive and straightforward, with _pretty error reporting_ out of box.
29
+
***Rewrite**: ast-grep provide API to traverse and manipulate syntax tree. Besides, you can also use operators to compose complex matching from simple patterns.
30
30
31
31
> Think ast-grep as an hybrid of [grep](https://www.gnu.org/software/grep/manual/grep.html), [eslint](https://eslint.org/) and [codemod](https://github.com/facebookincubator/fastmod).
32
32
33
+
Wanna try it out? Check out the [quick start guide](/guide/quick-start)! Or see some [examples](/catalog) to get a sense of what ast-grep can do. We also have a [playground](/playground.html) for you to try out ast-grep online!
34
+
33
35
## Supported Languages
34
36
35
37
ast-grep supports a wide range of programming languages. Here is a list of notable programming languages it supports.
0 commit comments