Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 631 Bytes

README.md

File metadata and controls

26 lines (21 loc) · 631 Bytes

aiscript-rs

CI

Rust implementation of AiScript (Experimental)

Example

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?;