Skip to content

Commit

Permalink
auto-call s-expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
Vandesm14 committed Jun 30, 2024
1 parent 0c50fb8 commit ba59935
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stack-core/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ impl Engine {
CallResult::None => unreachable!(),
}
}
}
if let ExprKind::SExpr { .. } = item.kind {
self.call_expr(context, item)
} else {
if let Some(journal) = context.journal_mut() {
journal.push_op(JournalOp::Call(expr.clone()));
Expand Down

0 comments on commit ba59935

Please sign in to comment.