From fce39a1c9a44d4a7eb2234f5d15b86d1c3177ffa Mon Sep 17 00:00:00 2001 From: Qrius Date: Thu, 26 Sep 2024 00:11:05 +0200 Subject: Do a bunch of QOL things, add some skaldpress specific macros, add second run, etc --- src/macro_processor/macro_processor.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/macro_processor/macro_processor.rs') diff --git a/src/macro_processor/macro_processor.rs b/src/macro_processor/macro_processor.rs index 82a94ef..68347d0 100644 --- a/src/macro_processor/macro_processor.rs +++ b/src/macro_processor/macro_processor.rs @@ -193,6 +193,7 @@ fn smp_builtin_expr( } /// Types of macros, this is to make it easy to store both functions and strings +#[derive(Clone)] pub enum MacroType { /// When expanded, the associated function will be expanded Function( @@ -217,9 +218,10 @@ enum ParserState { /// Defines a MacroProcessor object, with it's associated state /// the state mostly includes the defined macros +#[derive(Clone)] pub struct MacroProcessor { /// All currently defined macros in this MacroProcessor - macros: HashMap, + pub macros: HashMap, } impl MacroProcessor { -- cgit v1.2.3