type structs -> type classes

This commit is contained in:
ProgramSnail 2023-05-02 15:18:08 +03:00
parent a512a92f92
commit 648f78afa3
14 changed files with 638 additions and 383 deletions

View file

@ -45,7 +45,7 @@ struct AnyType {
};
struct Type {
std::variant<AbstractType, AliasType, AnyType> type;
std::variant<AliasType, AnyType> type;
};
struct Constructor {
@ -85,7 +85,6 @@ struct Namespace {
enum Modifier { Const, Var };
std::unordered_map<std::string, utils::IdType> types;
std::unordered_map<std::string, utils::IdType> typeclasses;
std::unordered_map<std::string, utils::IdType> functions;
std::unordered_map<std::string, utils::IdType> constructors;
std::unordered_map<std::string, Namespace> namespaces;