summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index 726ed1c..5c638a7 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,7 +1,8 @@
-use java2flowchart::parser::parse;
+use java2flowchart::ast::parse;
+use java2flowchart::parser;
fn main() {
- let test = "if (a) {f}";
+ let test = "if (a) {if (a) {a} else if {asd else if {}}}";
- println!("{:#?}", parse(test));
+ println!("{:#?}", parse(&parser::parse(test)));
}