39 releases (16 breaking)
0.16.0 | Dec 9, 2020 |
---|---|
0.15.0 | Jul 27, 2020 |
0.14.0 | Jun 8, 2020 |
0.12.0 | Mar 28, 2020 |
#5 in #builtin
107 downloads per month
70KB
2K
SLoC
kes
Rust implementation for Korean Era Script
lib.rs
:
kes implementation in Rust
Examples
use kes::builtin::RecordBuiltin;
use kes::context::Context;
use kes::program::Program;
use futures_executor::block_on;
let source = "$1 = 1 + 2; @$1;";
let program = Program::from_source(source).unwrap();
let mut builtin = RecordBuiltin::new();
let mut ctx = Context::new(&program);
block_on(ctx.run(&mut builtin)).unwrap();
assert_eq!(builtin.text(), "3");
Dependencies
~2.1–4.5MB
~72K SLoC