feat(furdb): add break command

This commit is contained in:
2026-08-16 20:01:52 +02:00
parent b3ce4fa0ed
commit a4966a057c
6 changed files with 48 additions and 4 deletions
+7 -1
View File
@@ -1,9 +1,15 @@
#include "context.hpp"
#include <furvm/executor.hpp>
#include <iostream>
void context::run() {
if ((executor->flags() & furvm::executor_flags::Done) != furvm::executor_flags::Done)
executor->push_frame(mod, *mainFunction);
while ((executor->flags() & furvm::executor_flags::Done) != furvm::executor_flags::Done) {
while ((executor->flags() & furvm::executor_flags::Done) != furvm::executor_flags::Done && !halt) {
executor->step();
}
if ((executor->flags() & furvm::executor_flags::Done) == furvm::executor_flags::Done) {
std::cout << "Execution finished\n";
}
}