cairo-lang-syntax-codegen 1.1.0-alpha0

Cairo syntax code generation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use cairo_lang_syntax_codegen::generator::{ensure_file_content, get_codes, project_root};
use cairo_lang_utils::logging::init_logging;

fn main() {
    init_logging(log::LevelFilter::Info);
    log::info!("Starting syntax generation.");

    for (suffix, code) in get_codes() {
        let filename = project_root().join(suffix);
        ensure_file_content(filename, code);
    }
}