aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-02-03 09:51:06 +0000
committerAleksey Kladov <[email protected]>2018-02-03 09:51:06 +0000
commitbb381a7ff7a21cad98d80005a81f2586684f80a0 (patch)
tree5163533d7f4814b8c716e3549660494ce5291853 /docs
parent6d9753bf548b22ab1a54462f72c9c0bf4ff69382 (diff)
Move tools to a separate package
Diffstat (limited to 'docs')
-rw-r--r--docs/TOOLS.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/docs/TOOLS.md b/docs/TOOLS.md
new file mode 100644
index 000000000..1fcfa2dec
--- /dev/null
+++ b/docs/TOOLS.md
@@ -0,0 +1,30 @@
1# Tools used to implement libsyntax
2
3libsyntax uses several tools to help with development.
4
5Each tool is a binary in the [tools/](../tools) package.
6You can run them via `cargo run` command.
7
8```
9cargo run --package tools --bin tool
10```
11
12There are also aliases in [./cargo/config](../.cargo/config),
13so the following also works:
14
15```
16cargo tool
17```
18
19
20# Tool: `gen`
21
22This tool reads a "grammar" from [grammar.ron](../grammar.ron) and
23generates the `syntax_kinds.rs` file. You should run this tool if you
24add new keywords or syntax elements.
25
26
27# Tool: 'parse'
28
29This tool reads rust source code from the standard input, parses it,
30and prints the result to stdout.