Initial work for functions as values. Actually works, but you can't write out the type and thus can only declare function pointer variables with type inference.
This commit is contained in:
@@ -26,9 +26,9 @@ class CGenerator {
|
||||
bool isUnderTranslationUnit(NodeTree<ASTData>* from, NodeTree<ASTData>* typeDefinition);
|
||||
NodeTree<ASTData>* highestScope(NodeTree<ASTData>* node);
|
||||
std::pair<std::string, std::string> generateTranslationUnit(std::string name, std::map<std::string, NodeTree<ASTData>*> ASTs);
|
||||
std::string generate(NodeTree<ASTData>* from, NodeTree<ASTData>* enclosingObject = NULL);
|
||||
std::string generate(NodeTree<ASTData>* from, NodeTree<ASTData>* enclosingObject = NULL, bool justFuncName = false);
|
||||
std::string generateAliasChains(std::map<std::string, NodeTree<ASTData>*> ASTs, NodeTree<ASTData>* definition);
|
||||
static std::string ValueTypeToCType(Type *type);
|
||||
static std::string ValueTypeToCType(Type *type, std::string);
|
||||
static std::string ValueTypeToCTypeDecoration(Type *type);
|
||||
static std::string ValueTypeToCTypeThingHelper(Type *type, std::string ptrStr);
|
||||
static std::string CifyName(std::string name);
|
||||
|
||||
Reference in New Issue
Block a user