Can eval basic block with variables and return

This commit is contained in:
Nathan Braswell
2018-02-03 22:47:21 -05:00
parent aad363f631
commit 00bb4e928c
2 changed files with 72 additions and 27 deletions

View File

@@ -189,8 +189,11 @@ fun main(argc: int, argv: **char):int {
/*printlnerr("Interpreting!")*/
/*call_main(name_ast_map)*/
printlnerr("Generating bytecode!")
var bytecode = generate_bytecode(name_ast_map, ast_pass.ast_to_syntax)
var generator.construct(): bytecode_generator
var bytecode = generator.generate_bytecode(name_ast_map)
printlnerr(bytecode_to_string(bytecode))
printlnerr("return code is ")
printlnerr(to_string(generator.evaluate()))
} else {
if (line_ctrl) {
printlnerr("running C-specific passes")