r'"([^"]+)"|\'([^\']+)\

def t_CONSTANT(tok):  # pylint: disable=locally-disabled,invalid-name
        r'"([^"]+)"|\'([^\']+)\''
        tok.value = (tok.type, re.sub('["\']', '', tok.value))
        return tok