<s> from . . import names <EOL> class VarMap : <EOL> def __init__ ( self ) : <EOL> self . _vars = { } <EOL> def rename ( self , old_name ) : <EOL> new_name = names . refresh ( old_name ) <EOL> self . _vars [ old_name ] = new_name <EOL> return new_name <EOL> def lookup ( self , old_name ) : <EOL> if old_name in self . _vars : <EOL> return self . _vars [ old_name ] <EOL> else : <EOL> return self . rename ( old_name ) <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" % self . _vars </s>
