Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class AbstractNode : public std::enable_shared_from_this<AbstractNode> {
- private:
- virtual void initHash(void) = 0;
- protected:
- ...
- public:
- TRITON_EXPORT AbstractNode(triton::ast::ast_e type, const SharedAstContext& ctxt);
- TRITON_EXPORT virtual ~AbstractNode();
- ...
- };
- //! `[<expr1> <expr2> <expr3> ...]` node
- class CompoundNode : public AbstractNode {
- private:
- void initHash(void);
- public:
- template <typename T> CompoundNode(const T& exprs, const SharedAstContext& ctxt)
- : AbstractNode(COMPOUND_NODE, ctxt) {
- for (auto expr : exprs)
- this->addChild(expr);
- }
- TRITON_EXPORT void init(bool withParents=false);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement