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

#4 in #builtin

Download history 1/week @ 2024-03-15 7/week @ 2024-03-29 2/week @ 2024-04-05

107 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

~2.3–5MB
~77K SLoC