From 8306b2c99a6af2b22732c612cbd9b202ddc1251f Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 28 Sep 2025 11:46:19 +0800 Subject: fix(parser, tokenizer): println and throw startswith instead of whole str --- 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 baa44b5..ab265d5 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 (first) {firstthen; if (firstthenif) {firstthenifthen} else {firstthenelse}} else {firstelse}"; + let test = "if (first) {firstthen; if (firstthenif) {firstthenifthen} else {firstthenelse}} else {firstelse}println('a')"; println!("{:#?}", parse(&parser::parse(test))); } -- cgit v1.2.3