File: expressions.py

package info (click to toggle)
python-pegen 0.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,980 kB
  • sloc: python: 15,064; makefile: 89
file content (41 lines) | stat: -rw-r--r-- 288 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
a + b
a - b
a * b
a / b
a // b
a % b
a @ b
a << b
a >> b
a | b
a ^ b
a ** b
a == b
a < b
a <= b
a > b
a >= b
a != b
a & b
~a
(1, 2, 3)
["a", "b"]
{1, 2}
{a: a.b}
{**d, a: b}

not b
a if b else c
a or b
a and b
a in b
a not in b
a is b
a is not b

a * (+1)
a * (-1)
a * (~1)

(a)
(yield a)