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
extern crate regex;
extern crate wat;

pub mod ast;
pub mod codegen;
pub mod parse;
use codegen::{SymbolGenerator, Wasm};

pub fn compile<T: Into<String>>(src: T) -> Vec<u8> {
    wat::parse_str(compile_wat(src)).unwrap()
}

pub fn compile_wat<T: Into<String>>(src: T) -> String {
    let mut s = SymbolGenerator::new();
    let ast = parse::parse(src);
    println!("{}", ast);
    let wasm = ast.emit(&mut s);
    println!("{}", wasm);
    wasm
}