diff options
Diffstat (limited to 'tools/src/bin')
-rw-r--r-- | tools/src/bin/parse.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/src/bin/parse.rs b/tools/src/bin/parse.rs index af1325bfc..5e4dc261f 100644 --- a/tools/src/bin/parse.rs +++ b/tools/src/bin/parse.rs | |||
@@ -2,14 +2,14 @@ extern crate libsyntax2; | |||
2 | 2 | ||
3 | use std::io::Read; | 3 | use std::io::Read; |
4 | 4 | ||
5 | use libsyntax2::{parse, tokenize}; | 5 | use libsyntax2::{parse_green, tokenize}; |
6 | use libsyntax2::utils::dump_tree; | 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 tokens = tokenize(&text); |
11 | let file = parse(text, &tokens); | 11 | let file = parse_green(text, &tokens); |
12 | let tree = dump_tree(&file); | 12 | let tree = dump_tree_green(&file); |
13 | println!("{}", tree); | 13 | println!("{}", tree); |
14 | } | 14 | } |
15 | 15 | ||