Now generates for all files that have been imported. CGenerator uses this to generate all files AND a shell script with the compile command to compile the generated C file.

This commit is contained in:
Nathan Braswell
2014-01-01 17:29:19 -06:00
parent dbf1820428
commit 53b45f360d
11 changed files with 78 additions and 36 deletions

View File

@@ -3,6 +3,7 @@
#include <string>
#include <iostream>
#include <fstream>
#include "NodeTree.h"
#include "ASTData.h"
@@ -15,8 +16,10 @@ class CGenerator {
public:
CGenerator();
~CGenerator();
void generateCompSet(std::map<std::string, NodeTree<ASTData>*> ASTs, std::string outputName);
std::string generate(NodeTree<ASTData>* from);
static std::string ValueTypeToCType(Type type);
std::string generatorString;
private:
std::string tabs();