Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
208
pub 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)]
215
mod tests {
Callers
nothing calls this directly
Calls
2
compile
Method · 0.80
interpret
Method · 0.80
Tested by
no test coverage detected