diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-02-03 09:54:52 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-02-03 09:54:52 +0000 |
commit | 3c70ae2e26f654ce536f00fde8c159e4ebe6901a (patch) | |
tree | 89fe4c9e08b76f69d39f4a565848c4ba054b6da7 /docs | |
parent | 6d9753bf548b22ab1a54462f72c9c0bf4ff69382 (diff) | |
parent | 9435ea4b8e990521ee7a6206b6106bb3ce392746 (diff) |
Merge #38
38: Move tools to a separate package r=matklad a=matklad
Diffstat (limited to 'docs')
-rw-r--r-- | docs/TOOLS.md | 30 |
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 | |||
3 | libsyntax uses several tools to help with development. | ||
4 | |||
5 | Each tool is a binary in the [tools/](../tools) package. | ||
6 | You can run them via `cargo run` command. | ||
7 | |||
8 | ``` | ||
9 | cargo run --package tools --bin tool | ||
10 | ``` | ||
11 | |||
12 | There are also aliases in [./cargo/config](../.cargo/config), | ||
13 | so the following also works: | ||
14 | |||
15 | ``` | ||
16 | cargo tool | ||
17 | ``` | ||
18 | |||
19 | |||
20 | # Tool: `gen` | ||
21 | |||
22 | This tool reads a "grammar" from [grammar.ron](../grammar.ron) and | ||
23 | generates the `syntax_kinds.rs` file. You should run this tool if you | ||
24 | add new keywords or syntax elements. | ||
25 | |||
26 | |||
27 | # Tool: 'parse' | ||
28 | |||
29 | This tool reads rust source code from the standard input, parses it, | ||
30 | and prints the result to stdout. | ||