Implemented support for ast.Pass in the interpeter. (#189)
This commit is contained in:
parent
5f32373551
commit
77f656c80d
|
@ -1334,6 +1334,8 @@ def evaluate_ast(
|
||||||
if expression.value
|
if expression.value
|
||||||
else None
|
else None
|
||||||
)
|
)
|
||||||
|
elif isinstance(expression, ast.Pass):
|
||||||
|
return None
|
||||||
else:
|
else:
|
||||||
# For now we refuse anything else. Let's add things as we need them.
|
# For now we refuse anything else. Let's add things as we need them.
|
||||||
raise InterpreterError(f"{expression.__class__.__name__} is not supported.")
|
raise InterpreterError(f"{expression.__class__.__name__} is not supported.")
|
||||||
|
|
Loading…
Reference in New Issue