'Create a parser with a specified color table and output channel.
Call format() to process code.'

def __init__(self, color_table=None, out=sys.stdout, parent=None, style=None):

    super(Parser, self).__init__(parent=parent)
    self.color_table = ((color_table and color_table) or ANSICodeColors)
    self.out = out
    if (not style):
        self.style = self.default_style
    else:
        self.style = style
