From 39d66182f0290bacc10886c2659874bd9edc2d4b Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Tue, 19 May 2026 22:48:23 +0800 Subject: Add `empty_result!` macro and `REPL` resource, improve examples --- mingling_core/src/program/repl_exec/res.rs | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 mingling_core/src/program/repl_exec/res.rs (limited to 'mingling_core/src/program/repl_exec') 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, +} -- cgit