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

#29 in #script

Download history 3/week @ 2021-02-27 1/week @ 2021-03-06 103/week @ 2021-03-20 41/week @ 2021-03-27 40/week @ 2021-04-03 41/week @ 2021-04-10 71/week @ 2021-04-17 2/week @ 2021-04-24 1/week @ 2021-05-01 40/week @ 2021-05-15 40/week @ 2021-06-05

140 downloads per month

MIT license

64KB
2K SLoC

kes

Rust implementation for Korean Era Script

Crates.io Build Status GitHub top language GitHub last commit Maintenance License


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

~1.4–2.7MB
~59K SLoC