21 lines
349 B
C
21 lines
349 B
C
|
|
#ifndef CGENERATOR_H
|
||
|
|
#define CGENERATOR_H
|
||
|
|
|
||
|
|
#include <string>
|
||
|
|
#include <iostream>
|
||
|
|
|
||
|
|
#include "NodeTree.h"
|
||
|
|
#include "ASTData.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
|