Debian Codegraph @

lib/mlrisc-lib/MLRISC/Tools/SourceMap/symbol.sig

raw
1 (*
2 * Maps strings to unique symbols.
3 * This saves space and makes equality testing and hashing quicker
4 *)
5 signature UNIQUE_SYMBOL =
6 sig
7
8 eqtype symbol
9
10 val equal : symbol * symbol -> bool
11 val compare : symbol * symbol -> order
12 val hash : symbol -> word
13 val fromString : string -> symbol
14 val toString : symbol -> string
15
16 end