pivot 0.1.0

Pivot is a new programming language built with Rust by Garen Tyler. Pivot is currently in the alpha stage of development.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::fs::File;
use std::io::prelude::*;

fn main() -> std::io::Result<()> {
    // Read the source from a file.
    let mut src = String::new();
    File::open("test.pvt")?.read_to_string(&mut src)?;
    // Compile it
    let binary = pivot::compile(src);
    // Write it to a file.
    File::create("out.wasm")?.write_all(&binary)?;
    Ok(())
}