From 3b6a6f6673041cf9ee315c00f9b0e24e2c067091 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 30 Jul 2018 16:16:58 +0300 Subject: Add render test functionality --- src/bin/cli.rs | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 src/bin/cli.rs (limited to 'src/bin/cli.rs') 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 @@ -extern crate libsyntax2; - -use std::io::Read; - -use libsyntax2::{ - parse, utils::dump_tree -}; - -fn main() { - let text = read_input(); - let file = parse(text); - let tree = dump_tree(&file); - println!("{}", tree); -} - -fn read_input() -> String { - let mut buff = String::new(); - ::std::io::stdin().read_to_string(&mut buff).unwrap(); - buff -} -- cgit v1.2.3