diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-09-28 17:59:00 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-10-08 16:30:11 +0800 |
| commit | 1f59ce4436d3a709172962c6559e6a42464b91ef (patch) | |
| tree | f0bb1e0b5a7984d695c5818158d1f10f3111950a /src/main.rs | |
| parent | 92965a7b9d5cd9db35b52e60cdc3962a2d9cf947 (diff) | |
WIP: image
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index ab265d5..0fa96b0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,15 @@ +use std::path::Path; + use java2flowchart::ast::parse; +use java2flowchart::image::create; use java2flowchart::parser; fn main() { let test = "if (first) {firstthen; if (firstthenif) {firstthenifthen} else {firstthenelse}} else {firstelse}println('a')"; - println!("{:#?}", parse(&parser::parse(test))); + let ast = parse(&parser::parse(test)); + + println!("{:#?}", ast); + + create(&ast, Path::new("output.png")); } |
