<s> __author__ = "<STR_LIT>" <EOL> """<STR_LIT>""" <EOL> class SimpleTree ( object ) : <EOL> def __init__ ( self , value = None , children = None ) : <EOL> self . value = value <EOL> self . children = children <EOL> if self . children == None : <EOL> self . children = [ ] <EOL> def __repr__ ( self , level = <NUM_LIT:0> ) : <EOL> ret = "<STR_LIT:\t>" * level + repr ( self . value ) + "<STR_LIT:\n>" <EOL> for child in self . children : <EOL> ret += child . __repr__ ( level + <NUM_LIT:1> ) <EOL> return ret <EOL> def main ( ) : <EOL> """<STR_LIT>""" <EOL> st = SimpleTree ( '<STR_LIT:a>' , [ SimpleTree ( '<STR_LIT:b>' , [ SimpleTree ( '<STR_LIT:d>' ) , SimpleTree ( '<STR_LIT:e>' ) ] ) , SimpleTree ( '<STR_LIT:c>' , [ SimpleTree ( '<STR_LIT:h>' ) , SimpleTree ( '<STR_LIT:g>' ) ] ) ] ) <EOL> print ( st ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
