-
Notifications
You must be signed in to change notification settings - Fork 2
Ident Module
Yotam Barnoy edited this page Apr 22, 2015
·
1 revision
The Ident Module allows for the creation of identifiers in the compiler. Each identifier consists of a timestamp, a name, and integer flags.
The only possible flags are for a global identifier and for predefined exceptions. A global counter keeps track of the latest timestamp.
Identifiers can be created either generically, which increments the timestamp, or as persistent identifiers, which has a timestamp of 0 and assigns the global flag, or as a predefined exception, which increments the timestamp and assigns the predefined exception flag.
Ident also contains an implementation of an ordered map for holding identifiers. This map appears to be historical, and can easily be reimplemented using the standard library.