You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the `pdlc` binary is not available, use `pdl_compiler` as a library
instead.
Also do some misc tidying of the build script, since it looks like the
output path was being derived in different ways with the same result.
let parsed_file = pdl_compiler::parser::parse_file(&mut sources, in_file.to_str().expect("Filename is not UTF-8").to_string()).expect("PDL parse failed");
86
+
let analyzed_file = pdl_compiler::analyzer::analyze(&parsed_file).expect("PDL analysis failed");
87
+
let rust_source = pdl_compiler::backends::rust::generate(&sources,&analyzed_file);
88
+
out_file.write_all(rust_source.as_bytes()).expect("Could not write to output file");
0 commit comments