diff --git a/src/interpreter/program.rs b/src/interpreter/program.rs index 58eb3f8..87acc64 100644 --- a/src/interpreter/program.rs +++ b/src/interpreter/program.rs @@ -39,6 +39,11 @@ impl ProgramInstance { }, } } + + /// Get one of the modules by name + pub fn module(&self, name: &str) -> Option> { + self.essence.module(name) + } } impl ProgramInstanceEssence {