cl-ast: Remove "Continue" struct

This commit is contained in:
2024-07-30 19:42:28 -05:00
parent b64cc232f9
commit 0e545077c6
7 changed files with 10 additions and 35 deletions

View File

@@ -156,7 +156,7 @@ impl Interpret for ExprKind {
ExprKind::For(v) => v.interpret(env),
ExprKind::Break(v) => v.interpret(env),
ExprKind::Return(v) => v.interpret(env),
ExprKind::Continue(v) => v.interpret(env),
ExprKind::Continue => Err(Error::Continue),
}
}
}
@@ -579,11 +579,6 @@ impl Interpret for Else {
}
}
}
impl Interpret for Continue {
fn interpret(&self, _env: &mut Environment) -> IResult<ConValue> {
Err(Error::Continue)
}
}
impl Interpret for Return {
fn interpret(&self, env: &mut Environment) -> IResult<ConValue> {
let Self { body } = self;