Lot's of work on a CGenerator, AST and language improvements
This commit is contained in:
21
include/CGenerator.h
Normal file
21
include/CGenerator.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user