partial rollback, might still not work

This commit is contained in:
Nathan Braswell
2016-06-16 09:53:15 -07:00
parent 4de7dd1210
commit 3f89cb1e37
7 changed files with 68 additions and 20 deletions

View File

@@ -9,6 +9,7 @@ import serialize:*
import interpreter:*
import os:*
import ast_transformation:*
/*import adt_lower:**/
import defer_lower:*
import c_line_control:*
import c_generator:*
@@ -99,6 +100,8 @@ fun main(argc: int, argv: **char):int {
var importer.construct(parsers, ast_pass, vector(string(), base_dir + "/stdlib/")): importer
importer.import(kraken_file_name)
// Passes
/*printlnerr("Lowering ADTs")*/
/*adt_lower(&importer.name_ast_map, &importer.ast_pass.ast_to_syntax)*/
printlnerr("Lowering Defer")
defer_lower(&importer.name_ast_map, &importer.ast_pass.ast_to_syntax)
if (interpret_instead) {