Example #1
0
    def pretty_print(self):
        self.parse_eval = EzhilInterpreter(self.lexer)
        ast = self.parse_eval.parse()
        print ast
        ast.visit(self)

        # dump remaining comments
        comm_attrib = self.theme.Comment
        for line, comment in self.lexer.comments.items():
            self.append(self.styler(comm_attrib, comment))
            self.append(self.NEWLINE)

        print "".join(self.output)