aboutsummaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-07-30 14:16:58 +0100
committerAleksey Kladov <[email protected]>2018-07-30 14:16:58 +0100
commit3b6a6f6673041cf9ee315c00f9b0e24e2c067091 (patch)
tree001e556601e9dd37556338f877759466846c7af0 /src/bin
parentd39198490f878a9ae395af1cf923fb7375de4548 (diff)
Add render test functionality
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/cli.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/bin/cli.rs b/src/bin/cli.rs
deleted file mode 100644
index 9e513edb2..000000000
--- a/src/bin/cli.rs
+++ /dev/null
@@ -1,20 +0,0 @@
1extern crate libsyntax2;
2
3use std::io::Read;
4
5use libsyntax2::{
6 parse, utils::dump_tree
7};
8
9fn main() {
10 let text = read_input();
11 let file = parse(text);
12 let tree = dump_tree(&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}