23 lines
368 B
C++
23 lines
368 B
C++
#ifndef CGENERATOR_H
|
|
#define CGENERATOR_H
|
|
|
|
#include <string>
|
|
#include <iostream>
|
|
|
|
#include "NodeTree.h"
|
|
#include "ASTData.h"
|
|
|
|
#include "util.h"
|
|
|
|
|
|
class CGenerator {
|
|
public:
|
|
CGenerator();
|
|
~CGenerator();
|
|
std::string generate(NodeTree<ASTData>* from);
|
|
static std::string ValueTypeToCType(ValueType type);
|
|
private:
|
|
std::string tabs();
|
|
int tabLevel;
|
|
};
|
|
#endif |