A little bit of code support now

This commit is contained in:
Michael Hansen
2009-07-26 10:07:13 +00:00
parent 98a50fd042
commit b89ae8b2ac
12 changed files with 556 additions and 28 deletions

19
ASTree.h Normal file
View File

@@ -0,0 +1,19 @@
#ifndef _PYC_ASTREE_H
#define _PYC_ASTREE_H
#include "ASTNode.h"
PycRef<ASTNode> BuildFromCode(PycRef<PycCode> code, PycModule* mod);
class ASTree {
public:
void load(PycModule* mod)
{ m_root = BuildFromCode(mod->code(), mod); }
void printSource(PycModule* mod) const;
private:
PycRef<ASTNode> m_root;
};
#endif