@meta.hook(BasicParser, "<STR_LIT>")<EOL>def pred_neq(self, n, val):
v1 = n.value<EOL>v2 = val<EOL>if hasattr(val, '<STR_LIT:value>'):<EOL><INDENT>v2 = val.value<EOL><DEDENT>if isinstance(v1, int) and not isinstance(v2, int):<EOL><INDENT>return v1 != int(v2)<EOL><DEDENT>return v1 != v2<EOL>
Test if a node set with setint or setstr not equal a certain value

example::

    R = [
        __scope__:n
        ['a' #setint(n, 12) | 'b' #setint(n, 14)]
        C
        [#neq(n, 12) D]
    ]