def rule_params_SA(parser, node, children):
    params = {}
    for name, value in children[0].items():
        if name not in ['skipws', 'ws']:
            raise TextXSyntaxError(
                'Invalid rule param "{}" at {}.'
                .format(name, parser.pos_to_linecol(node.position)))

        if name == 'ws' and '\\' in value:
            new_value = ""
            if "\\n" in value:
                new_value += "\n"
            if "\\r" in value:
                new_value += "\r"
            if value in "\\t":
                new_value += "\t"
            if " " in value:
                new_value += " "
            value = new_value

        params[name] = value

    return params
dataset/ETHPy150Open igordejanovic/textX/textx/textx.py/rule_params_SA/swapped operands of `in`