Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/poppingmoon/aiscript-rs

Rust implementation of AiScript (Experimental)
https://github.com/poppingmoon/aiscript-rs

misskey

Last synced: 3 months ago
JSON representation

Rust implementation of AiScript (Experimental)

Awesome Lists containing this project

README

        

# aiscript-rs

[![CI](https://github.com/poppingmoon/aiscript-rs/actions/workflows/ci.yml/badge.svg)](https://github.com/poppingmoon/aiscript-rs/actions/workflows/ci.yml)

Rust implementation of [AiScript](https://github.com/aiscript-dev/aiscript)
(Experimental)

## Example

```rust
use aiscript::v0::{Interpreter, Parser};
use futures::FutureExt;

let script = Parser::default().parse("<: 'Hello, world!'")?;
let interpreter = Interpreter::new(
[],
None:: _>,
Some(|v| {
println!("{v}");
async move {}.boxed()
}),
None:: _>,
None,
);
interpreter.exec(script).await?;
```