summaryrefslogtreecommitdiff
path: root/src/main.rs
blob: ab265d5f68347ee8486b79b2d8892ec62922cb14 (plain)
1
2
3
4
5
6
7
8
use java2flowchart::ast::parse;
use java2flowchart::parser;

fn main() {
    let test = "if (first) {firstthen; if (firstthenif) {firstthenifthen} else {firstthenelse}} else {firstelse}println('a')";

    println!("{:#?}", parse(&parser::parse(test)));
}