From 415c891d641fa305e7ddbbbcc78db990dd5d3564 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 29 Jul 2018 15:16:07 +0300 Subject: Reorganize --- tools/src/bin/parse.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tools/src/bin/parse.rs') 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; use std::io::Read; -use libsyntax2::{parse_green, tokenize}; +use libsyntax2::{parse}; use libsyntax2::utils::dump_tree_green; fn main() { let text = read_input(); - let tokens = tokenize(&text); - let file = parse_green(text, &tokens); + let file = parse(text); let tree = dump_tree_green(&file); println!("{}", tree); } -- cgit v1.2.3