aboutsummaryrefslogtreecommitdiff
path: root/tools/src/bin/parse.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-07-29 13:16:07 +0100
committerAleksey Kladov <[email protected]>2018-07-29 13:16:07 +0100
commit415c891d641fa305e7ddbbbcc78db990dd5d3564 (patch)
tree4b6e1e0aa4b5a732aeae8945e75c9bee3bbf1d65 /tools/src/bin/parse.rs
parentad188d4c3db34f035408afbdd6d2f3c308121f0a (diff)
Reorganize
Diffstat (limited to 'tools/src/bin/parse.rs')
-rw-r--r--tools/src/bin/parse.rs5
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
3use std::io::Read; 3use std::io::Read;
4 4
5use libsyntax2::{parse_green, tokenize}; 5use libsyntax2::{parse};
6use libsyntax2::utils::dump_tree_green; 6use libsyntax2::utils::dump_tree_green;
7 7
8fn main() { 8fn 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}