Added compiler context.

This commit is contained in:
Marvin Blum
2015-10-28 18:38:49 +01:00
parent 53ea74a19b
commit 393ddd4326
4 changed files with 334 additions and 330 deletions

View File

@@ -101,7 +101,8 @@ func compile(path string) {
}
token := asl.Tokenize(code)
sqf := asl.Parse(token, pretty)
compiler := asl.Compiler{}
sqf := compiler.Parse(token, pretty)
os.MkdirAll(filepath.FromSlash(path+PathSeparator+aslFiles[i].out), 0777)
err = ioutil.WriteFile(out, []byte(sqf), 0666)