IdentMap

String identifier to Id map - for interning strings

Members

Functions

initialize
void initialize()

initialize with elements of enum

intern
ident_t intern(string s, ident_t id)

intern string - return ID assigned for it

opIndex
ident_t opIndex(string s)

lookup id for string, return 0 if string is not found

opIndex
string opIndex(ident_t id)

lookup name for id, return null if not found

Meta