shithub: mc

Download patch

ref: 0f26571b17048f69d768bc4035cd109254ba7394
parent: cf5c1d13fb0285416340190aef65207ef0e3dfe5
author: Ori Bernstein <[email protected]>
date: Wed Oct 9 12:20:19 EDT 2013

Add string table test

--- /dev/null
+++ b/test/strtab.myr
@@ -1,0 +1,14 @@
+use std
+
+const strtab = [
+	"foo",
+	"bar",
+	"baz",
+	"quux"
+]
+
+const main = {
+	for i = 0; i < strtab.len; i++
+		std.put("%i: %s\n", i, strtab[i])
+	;;
+}