From f36abead9d948b65abc87c0aea43bbfa987442da Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 28 Sep 2025 11:25:30 +0800 Subject: fix(parser): If not processed properly fix(ast): early exit in the wrong place perf(ast): use metadata instead of direct string cmp --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index ecbb08c..baa44b5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,7 +2,7 @@ use java2flowchart::ast::parse; use java2flowchart::parser; fn main() { - let test = "if (a) {if (a) {abcdsdf} else if {asd else if {}}}"; + let test = "if (first) {firstthen; if (firstthenif) {firstthenifthen} else {firstthenelse}} else {firstelse}"; println!("{:#?}", parse(&parser::parse(test))); } -- cgit v1.2.3