diff options
author | Aleksey Kladov <[email protected]> | 2018-07-29 13:16:07 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-07-29 13:16:07 +0100 |
commit | 415c891d641fa305e7ddbbbcc78db990dd5d3564 (patch) | |
tree | 4b6e1e0aa4b5a732aeae8945e75c9bee3bbf1d65 /tools/src/bin/parse.rs | |
parent | ad188d4c3db34f035408afbdd6d2f3c308121f0a (diff) |
Reorganize
Diffstat (limited to 'tools/src/bin/parse.rs')
-rw-r--r-- | tools/src/bin/parse.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/src/bin/parse.rs b/tools/src/bin/parse.rs index 5e4dc261f..cb3414711 100644 --- a/tools/src/bin/parse.rs +++ b/tools/src/bin/parse.rs | |||
@@ -2,13 +2,12 @@ extern crate libsyntax2; | |||
2 | 2 | ||
3 | use std::io::Read; | 3 | use std::io::Read; |
4 | 4 | ||
5 | use libsyntax2::{parse_green, tokenize}; | 5 | use libsyntax2::{parse}; |
6 | use libsyntax2::utils::dump_tree_green; | 6 | use libsyntax2::utils::dump_tree_green; |
7 | 7 | ||
8 | fn main() { | 8 | fn main() { |
9 | let text = read_input(); | 9 | let text = read_input(); |
10 | let tokens = tokenize(&text); | 10 | let file = parse(text); |
11 | let file = parse_green(text, &tokens); | ||
12 | let tree = dump_tree_green(&file); | 11 | let tree = dump_tree_green(&file); |
13 | println!("{}", tree); | 12 | println!("{}", tree); |
14 | } | 13 | } |