Instantiates all symbols in this module and adds them to the `machine`.
(machine: &mut MachineBuilder)
| 222 | |
| 223 | /// Instantiates all symbols in this module and adds them to the `machine`. |
| 224 | pub fn add_all(machine: &mut MachineBuilder) { |
| 225 | let index = Rc::from(RefCell::from(0)); |
| 226 | machine.add_clearable(Box::from(ClearableIndex(index.clone()))); |
| 227 | machine.add_callable(ReadCommand::new(index.clone())); |
| 228 | machine.add_callable(RestoreCommand::new(index)); |
| 229 | } |
| 230 | |
| 231 | #[cfg(test)] |
| 232 | mod tests { |
nothing calls this directly
no test coverage detected