John
e70ffd1895
- StringArena provides an arena for immutable strings, inspired by other string interners, and keeps track of the ends of every allocated string. Strings inserted into the arena are assigned a Symbol. - intern::Interner keeps track of the hashes of each inserted string, and provides deduplication for interned strings. This allows referential comparison between interned strings - global_intern::GlobalSym provides metered access to a Global Interner, and has a Display implementation which queries the Interner. The global interner is planned for use in cl-ast. TODO: the unstable raw_entry API is about to be removed from Rust. Maybe switch to hashbrown, or write my own hash table? |
||
---|---|---|
.. | ||
cl-ast | ||
cl-interpret | ||
cl-lexer | ||
cl-parser | ||
cl-repl | ||
cl-structures | ||
cl-token | ||
cl-typeck |