1 2 3 4 5 6 7 8 9 10 11
use renpy_parser::{parse_scenario_from_file, parsers::ASTVec}; fn main() { let (ast, parse_error) = parse_scenario_from_file("assets/script_2.rpy").unwrap(); for e in parse_error { println!("error: {:?}", e); } println!("{}", ASTVec(&ast)); }