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

@@ -19,10 +19,12 @@ class Importer {
Importer(Parser* parserIn);
~Importer();
NodeTree<ASTData>* import(std::string fileName);
std::map<std::string, NodeTree<ASTData>*> getASTMap();
private:
Parser* parser;
std::vector<Symbol> removeSymbols;
std::vector<Symbol> collapseSymbols;
std::map<std::string, NodeTree<ASTData>*> imported;
};
#endif