1 # Tools used to implement libsyntax
3 libsyntax uses several tools to help with development.
5 Each tool is a binary in the [tools/](../tools) package.
6 You can run them via `cargo run` command.
9 cargo run --package tools --bin tool
12 There are also aliases in [./cargo/config](../.cargo/config),
13 so the following also works:
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.
29 This tool reads rust source code from the standard input, parses it,
30 and prints the result to stdout.
33 ## Tool: `collect-tests`
35 This tools collect inline tests from comments in libsyntax2 source code
36 and places them into `tests/data/inline` directory.