def to_string(self, indent):
ind = indent * '<STR_LIT:U+0020>'<EOL>if self.root:<EOL><INDENT>print(ind, self.type, '<STR_LIT>', self.root)<EOL><DEDENT>else:<EOL><INDENT>print(ind, self.type)<EOL><DEDENT>indent = indent + <NUM_LIT:3><EOL>ind = indent * '<STR_LIT:U+0020>'<EOL>for children in self.children:<EOL><INDENT>if children is None:<EOL><INDENT>print("<STR_LIT>", type(self))<EOL>print(self.children)<EOL><DEDENT>if isinstance(children, str):<EOL><INDENT>print(ind, children)<EOL><DEDENT>elif isinstance(children, int):<EOL><INDENT>print(ind, str(children))<EOL><DEDENT>elif isinstance(children, float):<EOL><INDENT>print(ind, str(children))<EOL><DEDENT>else:<EOL><INDENT>children.to_string(indent)<EOL><DEDENT><DEDENT>
Print with indent.