Wooo actual scoping and better C interop

This commit is contained in:
Nathan Braswell
2015-04-10 00:37:31 -04:00
parent e37836aea5
commit e3aa531856
23 changed files with 194 additions and 46 deletions

View File

@@ -16,7 +16,8 @@ class Type;
enum ASTType {undef, translation_unit, interpreter_directive, import, identifier, type_def,
function, code_block, typed_parameter, expression, boolean_expression, statement,
if_statement, while_loop, for_loop, return_statement, assignment_statement, declaration_statement,
if_comp, simple_passthrough, passthrough_params, function_call, value};
if_comp, simple_passthrough, passthrough_params, in_passthrough_params, out_passthrough_params,
opt_string, param_assign, function_call, value};
class ASTData {
public:

View File

@@ -35,6 +35,7 @@ class CGenerator {
std::string generateObjectMethod(NodeTree<ASTData>* enclosingObject, NodeTree<ASTData>* from, std::string *functionPrototype);
NodeTree<ASTData>* getMethodsObjectType(NodeTree<ASTData>* scope, std::string functionName);
std::string generatorString;
std::string linkerString;
private:
std::string tabs();
int tabLevel;