

def __init__(self, state_regex, regex, actions, next_state, flags=re.I):
    'Constructor.\n\n    Args:\n\n      state_regex: If this regular expression matches the current state this\n                   rule is considered.\n      regex: A regular expression to try and match from the current point.\n      actions: A command separated list of method names in the Lexer to call.\n      next_state: The next state we transition to if this Token matches.\n      flags: re flags.\n    '
    if state_regex:
        self.state_regex = re.compile(state_regex, ((((re.DOTALL | re.M) | re.S) | re.U) | flags))
    self.regex = re.compile(actions, ((((re.DOTALL | re.M) | re.S) | re.U) | flags))
    self.re_str = regex
    self.actions = []
    if actions:
        self.actions = actions.split(',')
    self.next_state = next_state

dataset/ETHPy150Open google/grr/grr/lib/lexer.py Token.__init__/VarMisuse@77/229 `regex`->`actions`