From e83990754f49ec6eba7b9e1a5ff80a6add5de3a1 Mon Sep 17 00:00:00 2001 From: Nagi5Yeq Date: Tue, 26 May 2020 00:26:57 +0800 Subject: bugfix & test --- node/BaseNode.hh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'node/BaseNode.hh') diff --git a/node/BaseNode.hh b/node/BaseNode.hh index 16ee82d..71b0925 100644 --- a/node/BaseNode.hh +++ b/node/BaseNode.hh @@ -25,6 +25,21 @@ template class ListNode : public Base { private: std::list childs_; }; + +class FunctionNode; + +class ProgramNode : public BaseNode { + public: + ProgramNode(Context* context, const std::string& name, + std::list> GlobalDeclarations, + std::list> functions); + virtual Value CodeGen() override; + + protected: + std::string name_; + std::list> GlobalDeclarations_; + std::list> functions_; +}; } // namespace pcc #endif -- cgit