Files
Pyarmor-Static-Unpack-1shot/ASTree.h
2009-07-26 10:07:13 +00:00

20 lines
334 B
C++

#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