Files
codeql/python/extractor/tests/parser/operators.py

55 lines
436 B
Python

1 and 2
3 or 4
5 == 6
7 > 8
9 >= 10
11 in 12
13 is 14
15 is not 16
17 < 18
19 <= 20
21 != 22
23 <> 24
25 not in 26
27 > 28 >= 29 < 30 <= 31 == 32 != 33 <> 34
+35
-36
~37
not 38
# or(not(a), b)
not a or b
# and(c, d, e, f, g)
c and d and e and f and g
# or(h, i, j, k, l)
h or i or j or k or l
# or(and(m, n), and(o, p))
m and n or o and p
# or(q, and(s, t), u)
q or s and t or u
a1 or b1 and c1
d1 and e1 or f1