single_script/
single_script.rs

1use pdx_syntax::script::parse_file;
2
3fn main() {
4    let mut args = std::env::args();
5    args.next();
6    let path = args.next().expect("Missing argument: path");
7    let mut ast = parse_file(&path).unwrap();
8    use pdx_syntax::script::types::*;
9    ast.push(Unit::SingleValue(Value::Primitive(Entry::Ident(
10        "TEST".to_string(),
11    ))));
12    println!("{}", ast);
13}