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
mod common;

#[test]
fn empty_program() {
	common::test_program(
		"





	", "",
	);
}

#[test]
fn prefix_newlines() {
	common::test_program(
		"




    a = 2
    print a
	",
		"2\n",
	);
}

#[test]
fn infix_newlines() {
	common::test_program(
		"a = 2



    print a
	",
		"2\n",
	);
}

#[test]
fn comment_on_own_line() {
	common::test_program(
		"
print 2
// comment
	",
		"2\n",
	);
}