| Crates.io | bitsy-script |
| lib.rs | bitsy-script |
| version | 0.2.1 |
| created_at | 2025-12-20 20:55:33.612118+00 |
| updated_at | 2025-12-24 14:41:29.595018+00 |
| description | Interpreter for Bitsy scripting language |
| homepage | |
| repository | https://github.com/orsinium-labs/bitsy-script |
| max_upload_size | |
| id | 1996971 |
| size | 28,736 |
Rust interpreter for the scripting language used for dialogs in Bitsy game engine.
It's far from 100% compatibility. A lot of complex nodes won't be parsed. The goal was to keep the implementation simple and the AST flat. This might change in the future implementations and we'll hopefully have a proper parser for all quirks and gimmicks of bitsy.
cargo add bitsy-script
use bitsy_script::*;
let dialog = "hello {wvy}world{/wvy}!{br}";
let mut state = State::default();
let tokenizer = Tokenizer::new(dialog);
let interpreter = Interpreter {
tokens: tokenizer,
state: &mut state,
};
let words: Vec<_> = interpreter.collect();