\r
struct Context\r
{\r
+ std::optional<std::string> name;\r
std::shared_ptr<Context> parent;\r
std::vector<Variable> variables;\r
+ std::vector<Function> functions;\r
+ std::vector<Struct> structs;\r
};\r
\r
enum class TypeModifierType\r
{\r
std::string name;\r
std::shared_ptr<Context> ctx;\r
- std::vector<Struct> structs;\r
- std::vector<Function> functions;\r
std::vector<Namespace> namespaces;\r
};\r
\r
struct Program\r
{\r
std::shared_ptr<Context> ctx;\r
- std::vector<Struct> structs;\r
- std::vector<Function> functions;\r
std::vector<Namespace> namespaces;\r
};\r
\r