mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2025-12-06 06:58:45 +00:00
access syntax changed, sync with grammar, type_chack_visitor in progress
This commit is contained in:
parent
3d74b1383e
commit
6fc91aafa0
19 changed files with 110221 additions and 102967 deletions
|
|
@ -8,9 +8,13 @@ namespace utils {
|
|||
|
||||
using IdType = std::size_t;
|
||||
|
||||
enum class ReferenceType { Reference, UniqueReference };
|
||||
|
||||
template<typename T>
|
||||
class Storage {
|
||||
public:
|
||||
Storage() = default;
|
||||
|
||||
IdType GetId(const T& value) {
|
||||
IdType id = 0;
|
||||
auto value_position = value_to_id_.find(value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue