Files
BlitzNext/compiler/block.h_old
T

29 lines
384 B
Plaintext
Raw Normal View History

2014-01-31 08:23:00 +13:00
/*
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