single_loc/single_loc.rs
1use pdx_syntax::localization::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 ast.entries.push(pdx_syntax::localization::types::Entry {
9 key: "test".to_string(),
10 num: Some(123),
11 value: "\"test\"".to_string(),
12 });
13 println!("{}", ast);
14}