Initial commit.

This commit is contained in:
blitz-research
2014-01-31 08:23:00 +13:00
commit 08a613ed0e
322 changed files with 45306 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
/*
A block represents a function - code & data.
*/
#ifndef BLOCK_H
#define BLOCK_H
struct Block{
Block( Block *parent );
~Block();
void genCode( TNode *t ){ code.push_back( t ); }
void genData( TNode *t ){ data.push_back( t ); }
void generate( Codegen *gen );
private:
Block *parent;
vector<Block*> children;
vector<TNode*> code;
vector<TNode*> data;
};
#endif