INNER CODE UNIT · Rust

synth_spec

gabotechs/graphqxl · graphqxl_synthesizer/src/lib.rs:24

pub fn synth_spec(spec: Spec, config: SynthConfig) -> (String, Vec<SourceMapEntry>) {
    let mut context = SynthContext {
        source_map: vec![],
        result: "".to_string(),
        indent_lvl: 0,
        offset: 0,
        line: 0,
        col: 0,
        config,
    };
    SpecSynth(spec).synth(&mut context);
    (context.result, context.source_map)
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…