Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/poppingmoon/aiscript-rs
- Owner: poppingmoon
- License: apache-2.0
- Created: 2024-06-11T11:45:03.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-08-24T00:47:22.000Z (5 months ago)
- Last Synced: 2024-08-24T01:43:22.234Z (5 months ago)
- Topics: misskey
- Language: Rust
- Homepage:
- Size: 109 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
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?;
```