https://github.com/poppingmoon/aiscript-rs
Rust implementation of AiScript (Experimental)
https://github.com/poppingmoon/aiscript-rs
aiscript misskey
Last synced: 4 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 (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-04T22:26:45.000Z (4 months ago)
- Last Synced: 2025-03-04T23:25:59.307Z (4 months ago)
- Topics: aiscript, misskey
- Language: Rust
- Homepage:
- Size: 134 KB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# aiscript-rs
[](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?;
```