Files
kraken/include/CGenerator.h

28 lines
528 B
C++

#ifndef CGENERATOR_H
#define CGENERATOR_H
#include <string>
#include <iostream>
#include <fstream>
#include "NodeTree.h"
#include "ASTData.h"
#include "Type.h"
#include "util.h"
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();
int tabLevel;
};
#endif