mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2026-01-25 13:07:13 +00:00
type structs -> type classes
This commit is contained in:
parent
a512a92f92
commit
648f78afa3
14 changed files with 638 additions and 383 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue