summaryrefslogtreecommitdiff
path: root/build.rs
blob: 3eb9e1bf5252895bfd1de676693277f6a7b5b46e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
fn main() {
    println!("cargo:rerun-if-changed=src/pagespec.lalrpop");
    println!("building parser with larlpop");
    lalrpop::process_root().unwrap();
    println!("built parser with larlpop successfully");
    println!("generating code with Subplot");
    if let Err(e) = subplot_build::codegen("riki.subplot") {
        eprintln!("failed to generate code from subplot: {e}");
        std::process::exit(1);
    }
    println!("generated code with Subplot successfully");
}