xbasic 0.3.1

A library that allows adding a scripting language onto your project with ease. This lets your users write their own arbitrary logic.
Documentation
use xbasic::xbasic::XBasic;

mod common;

#[test]
fn order_of_operations_1() {
	let tio = common::TestIO::new("23\n");

	let mut xb = XBasic::new(tio);
	xb.run("print 3 + 4 * 5\n").unwrap();

	xb.get_io().check();
}

#[test]
fn order_of_operations_2() {
	let tio = common::TestIO::new("35\n");

	let mut xb = XBasic::new(tio);
	xb.run("print (3 + 4) * 5\n").unwrap();

	xb.get_io().check();
}