aboutsummaryrefslogtreecommitdiff
path: root/src/bin/cli/parse.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-07-30 13:25:52 +0100
committerAleksey Kladov <[email protected]>2018-07-30 13:25:52 +0100
commit333e140a50658151002c9287aa68855358bedd56 (patch)
tree21cd482ab080b00d5b93ebaf8e9096644bafa4b3 /src/bin/cli/parse.rs
parentd30a2e4fac9267066dc53d71c4695843f95e6269 (diff)
Mior
Diffstat (limited to 'src/bin/cli/parse.rs')
-rw-r--r--src/bin/cli/parse.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/bin/cli/parse.rs b/src/bin/cli/parse.rs
deleted file mode 100644
index 563ea92f6..000000000
--- a/src/bin/cli/parse.rs
+++ /dev/null
@@ -1,20 +0,0 @@
1extern crate libsyntax2;
2
3use std::io::Read;
4
5use libsyntax2::{
6 parse, utils::dump_tree_green
7};
8
9fn main() {
10 let text = read_input();
11 let file = parse(text);
12 let tree = dump_tree_green(&file);
13 println!("{}", tree);
14}
15
16fn read_input() -> String {
17 let mut buff = String::new();
18 ::std::io::stdin().read_to_string(&mut buff).unwrap();
19 buff
20}