Rust implementation of AiScript (Experimental)
use aiscript::v0::{Interpreter, Parser};
use futures::FutureExt;
let script = Parser::default().parse("<: 'Hello, world!'")?;
let interpreter = Interpreter::new(
[],
None::<fn(_) -> _>,
Some(|v| {
println!("{v}");
async move {}.boxed()
}),
None::<fn(_) -> _>,
None,
);
interpreter.exec(script).await?;