interpreter/runtime/mod.rs
1use std::collections::HashMap;
2
3use crate::types::{HeapWrapper, Options};
4
5pub mod _root_syntax;
6
7pub trait RuntimeValue: Sync {
8 fn doc(&self) -> HashMap<&'static str, &'static [&'static str; 3]>;
9
10 fn name(&self) -> &'static str;
11
12 fn call_ptr(
13 &mut self,
14 caller: &str,
15 v: *const [&'static str],
16 a: HeapWrapper,
17 c: &str,
18 o: &mut Options,
19 ) -> Option<()>;
20}