Skip to content

Commit e4ae70c

Browse files
timfelcosminbasca
authored andcommitted
more ast stubs
1 parent 6952016 commit e4ae70c

File tree

1 file changed

+112
-2
lines changed

1 file changed

+112
-2
lines changed

graalpython/lib-graalpython/_ast.py

Lines changed: 112 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
# SOFTWARE.
3939

4040

41+
PyCF_ONLY_AST = 0
42+
43+
4144
class AST:
4245
def __dir__(self):
4346
return []
@@ -71,6 +74,98 @@ class operator(AST):
7174
pass
7275

7376

77+
class BitOr(operator):
78+
pass
79+
80+
81+
class BitXor(operator):
82+
pass
83+
84+
85+
class BitAnd(operator):
86+
pass
87+
88+
89+
class LShift(operator):
90+
pass
91+
92+
93+
class RShift(operator):
94+
pass
95+
96+
97+
class Add(operator):
98+
pass
99+
100+
101+
class Sub(operator):
102+
pass
103+
104+
105+
class Mult(operator):
106+
pass
107+
108+
109+
class Div(operator):
110+
pass
111+
112+
113+
class FloorDiv(operator):
114+
pass
115+
116+
117+
class Mod(operator):
118+
pass
119+
120+
121+
class Eq(operator):
122+
pass
123+
124+
125+
class NotEq(operator):
126+
pass
127+
128+
129+
class Lt(operator):
130+
pass
131+
132+
133+
class LtE(operator):
134+
pass
135+
136+
137+
class Gt(operator):
138+
pass
139+
140+
141+
class GtE(operator):
142+
pass
143+
144+
145+
class Pow(operator):
146+
pass
147+
148+
149+
class Is(operator):
150+
pass
151+
152+
153+
class IsNot(operator):
154+
pass
155+
156+
157+
class In(operator):
158+
pass
159+
160+
161+
class NotIn(operator):
162+
pass
163+
164+
165+
class MatMult(operator):
166+
pass
167+
168+
74169
class unaryop(AST):
75170
pass
76171

@@ -103,7 +198,23 @@ class Eq(cmpop):
103198
pass
104199

105200

106-
class In(cmpop):
201+
class In(cmpop):
202+
pass
203+
204+
205+
class Not(unaryop):
206+
pass
207+
208+
209+
class Invert(unaryop):
210+
pass
211+
212+
213+
class USub(unaryop):
214+
pass
215+
216+
217+
class UAdd(unaryop):
107218
pass
108219

109220

@@ -113,4 +224,3 @@ class NotEq(cmpop):
113224

114225
class NotIn(cmpop):
115226
pass
116-

0 commit comments

Comments
 (0)