summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-09-28 11:46:19 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-09-28 11:52:48 +0800
commit8306b2c99a6af2b22732c612cbd9b202ddc1251f (patch)
treee917793726c1ad75f56617e17fc201dbf812ace9 /src/main.rs
parentf36abead9d948b65abc87c0aea43bbfa987442da (diff)
fix(parser, tokenizer): println and throw startswith instead of whole str
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
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)));
}