Basic semantic analysis, beginning transpiler!

Also added the mini standard library as a plain js file.