aboutsummaryrefslogtreecommitdiff
path: root/tests/icon/accept/calculate.zc
blob: 77ba7ea49a7e3cb0d5ed79dc029a51e0bd24d5fc (plain) (blame)
1
2
3
4
5
6
7
8
include rt;
include run;
include icon;
fn main() {
	let q = run.tokens("(3 + 4) * (8 - 2)");
	rt.put_n(icon.calculate(q, 0, q[0])); rt.put_c(10);
	return 0;
}