def __init__(self, param):
    self.start_tag = (param.get('START_TAG') or DEFAULT_STYLE['START_TAG'])
    self.end_tag = (param.get('END_TAG') or DEFAULT_STYLE['END_TAG'])
    self.tag_style = param.get('TAG_STYLE', 'default')
    self.anycase = param.get('ANYCASE', False)
    self.interpolate = param.get('INTERPOLATE', False)
    self.pre_chomp = param.get('PRE_CHOMP', CHOMP_NONE)
    self.post_chomp = param.get('POST_CHOMP', CHOMP_NONE)
    self.v1dollar = param.get('V1DOLLAR', False)
    self.eval_python = param.get('EVAL_PYTHON', False)
    self.file_info = param.get('FILE_INFO', 1)
    self.grammar = param.get('GRAMMAR', Grammar())
    self.factory = param.get('FACTORY', Directive)
    self.fileinfo = []
    self.defblocks = []
    self.defblock_stack = []
    self.infor = 0
    self.inwhile = 0
    self.style = []
    if isinstance(self.factory, collections.Callable):
        self.factory = self.factory(param)
    self.lextable = self.grammar.lextable
    self.states = self.grammar.states
    self.rules = self.grammar.rules
    self.new_style(param)
    self.tokenize = (((1,), self._comment), ((2, 3), self._string), ((4,), self._number), ((5,), self._filename), ((6,), self._identifier), ((7,), self._word))
def __init__(self, param):
    self.start_tag = (param.get('START_TAG') or DEFAULT_STYLE['START_TAG'])
    self.end_tag = (param.get('END_TAG') or DEFAULT_STYLE['END_TAG'])
    self.tag_style = param.get('TAG_STYLE', 'default')
    self.anycase = param.get('ANYCASE', False)
    self.interpolate = param.get('INTERPOLATE', False)
    self.pre_chomp = param.get('PRE_CHOMP', CHOMP_NONE)
    self.post_chomp = param.get('POST_CHOMP', CHOMP_NONE)
    self.v1dollar = param.get('V1DOLLAR', False)
    self.eval_python = param.get('EVAL_PYTHON', False)
    self.file_info = param.get('FILE_INFO', 1)
    self.grammar = param.get('GRAMMAR', Grammar())
    self.factory = param.get('FACTORY', Directive)
    self.fileinfo = []
    self.defblocks = []
    self.defblock_stack = []
    self.infor = 0
    self.inwhile = 0
    self.style = []
    if isinstance(self.factory, collections.Callable):
        self.factory = self.factory(param)
    self.lextable = self.grammar.lextable
    self.states = self.grammar.states
    self.rules = self.grammar.rules
    self.new_style(param)
    self.tokenize = (((1,), self._comment), ((2, 3), self._string), ((4,), self._number), ((5,), self._filename), ((6,), self._identifier), ((7,), self._word))