MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / eval

Function eval

aiscript-vm/src/lib.rs:208–212  ·  view source on GitHub ↗
(source: &'static str)

Source from the content-addressed store, hash-verified

206}
207
208pub fn eval(source: &'static str) -> Result<ReturnValue, VmError> {
209 let mut vm = Vm::default();
210 vm.compile(source)?;
211 vm.interpret()
212}
213
214#[cfg(test)]
215mod tests {

Callers

nothing calls this directly

Calls 2

compileMethod · 0.80
interpretMethod · 0.80

Tested by

no test coverage detected