Added generator-dependent compilation and simple passthrough that allows us to have non-cheated emitted, printing c-code for the first time! (no typechecking or anything yet, but we'll get there). It's also still rough.

This commit is contained in:
Nathan Braswell
2013-12-22 01:34:59 -06:00
parent 6ad406e42d
commit 935cc6f968
9 changed files with 55 additions and 33 deletions

View File

@@ -13,8 +13,8 @@ enum ASTType {undef, translation_unit, interpreter_directive, import, identifier
function, code_block,
typed_parameter, expression, boolean_expression, statement,
if_statement, while_loop, for_loop, return_statement, assignment_statement, declaration_statement,
function_call, value};
enum ValueType {none, boolean, integer, floating, double_percision, char_string };
if_comp, simple_passthrough, function_call, value};
enum ValueType {none, void_type, boolean, integer, floating, double_percision, char_string };
class ASTData {