blob: 433f27076ecb59ddf843ef17e0a4f4c73a840cd5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
definition module hashtable
import syntax
:: .HashTableEntry
:: HashTable =
{ hte_symbol_heap :: !.SymbolTable
, hte_entries :: !.{! .HashTableEntry}
, hte_mark :: !Int // 1 for .icl modules, otherwise 0
}
newHashTable :: *SymbolTable -> *HashTable
set_hte_mark :: !Int !*HashTable -> *HashTable
:: IdentClass = IC_Expression
| IC_Type
| IC_TypeAttr
| IC_Class
| IC_Module
| IC_Field !Ident
| IC_Selector
| IC_Instance ![Type]
| IC_Generic
| IC_GenericCase !Type
| IC_Unknown
:: BoxedIdent = {boxed_ident::!Ident}
putIdentInHashTable :: !String !IdentClass !*HashTable -> (!BoxedIdent, !*HashTable)
putPredefinedIdentInHashTable :: !Ident !IdentClass !*HashTable -> *HashTable
remove_icl_symbols_from_hash_table :: !*HashTable -> *HashTable
|