void SortSymbolTable() { BinarySearchTreeIterator <Identifier> identifierIterator = Identifiers.CreateIterator(); BinarySearchTreeIterator <Constant> constantIterator = Constants.CreateIterator(); int index; index = 0; while (identifierIterator.Valid) { Identifier identifier = identifierIterator.CurrentElement; identifier.PositionOfIdentifier = index; index += 1; identifierIterator.Next(); } index = 0; while (constantIterator.Valid) { Constant constant = constantIterator.CurrentElement; constant.PositionOfIdentifier = index; index += 1; constantIterator.Next(); } }