summaryrefslogtreecommitdiff
path: root/src/main.rs
blob: 0fa96b024e82fcb811eced59cc0a3f47220f86a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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')";

    let ast = parse(&parser::parse(test));

    println!("{:#?}", ast);

    create(&ast, Path::new("output.png"));
}