orbitc 1.1.0

The Orbit Compiler Infrastructure.
Documentation
use std::io;

use orbitc::{
    Arg::{Ident, String},
    Code, CodeLine,
};

fn main() -> io::Result<()> {
    let c = Code {
        lines: vec![
            CodeLine::Printf(vec![String("Hello, "), String("world\n")]),
            CodeLine::Scanf {
                name: "input",
                prompt: "How are you? ",
            },
            CodeLine::Printf(vec![String("So you are "), Ident("input"), String("\n")]),
        ],
    };

    println!("{}", c.transpile());
    c.export_c("examples/hello_world.c")?;

    match c.build("examples/hello_world") {
        Ok(_) => Ok(()),
        Err(e) => {
            panic!("{e}")
        }
    }
}