'Parse a file and return the syntax tree.'

def parse_file(self, filename, encoding=None, debug=False):

    with io.open(filename, 'r', encoding=encoding) as stream:
        return self.parse_stream(stream, debug)
