aboutsummaryrefslogtreecommitdiff
path: root/mingling_core/src/program/repl_exec
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-05-19 22:48:23 +0800
committer魏曹先生 <1992414357@qq.com>2026-05-19 22:48:23 +0800
commit39d66182f0290bacc10886c2659874bd9edc2d4b (patch)
tree7b0e9463575a8350cd5a61bd0d02c9bada892b7f /mingling_core/src/program/repl_exec
parentbd4b09b06181093c95e865b04d4a9cdda7dd0728 (diff)
Add `empty_result!` macro and `REPL` resource, improve examples
Diffstat (limited to 'mingling_core/src/program/repl_exec')
-rw-r--r--mingling_core/src/program/repl_exec/res.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/mingling_core/src/program/repl_exec/res.rs b/mingling_core/src/program/repl_exec/res.rs
new file mode 100644
index 0000000..1295652
--- /dev/null
+++ b/mingling_core/src/program/repl_exec/res.rs
@@ -0,0 +1,6 @@
+/// Internal resource for the REPL runtime, used to control the REPL's state during execution
+#[derive(Default, Clone)]
+pub struct REPL {
+ /// Marks whether the REPL should exit after the current loop ends
+ pub exit: bool,
+}