From 4a5bc55769804d003d6cd9f8c16eefb76bb53d1b Mon Sep 17 00:00:00 2001 From: Nagi5Yeq Date: Sun, 31 May 2020 13:11:44 +0800 Subject: full support of array, pointer and record stuffs --- Type.hh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Type.hh') diff --git a/Type.hh b/Type.hh index e11a9ea..b686e28 100644 --- a/Type.hh +++ b/Type.hh @@ -197,6 +197,17 @@ class FunctionType : public Type { std::shared_ptr ReturnType_; std::vector> ArgTypes_; }; + +using RecordMember = std::pair>; + +class RecordType : public Type { + public: + RecordType(const std::vector& members, std::string&& name); + std::pair> GetMember(const std::string& name); + + protected: + std::map>> members_; +}; } // namespace pcc #endif // PCC_TYPE_H -- cgit