summaryrefslogtreecommitdiff
path: root/test.out
diff options
context:
space:
mode:
Diffstat (limited to 'test.out')
-rw-r--r--test.out13
1 files changed, 13 insertions, 0 deletions
diff --git a/test.out b/test.out
index 0caafb1..31bac64 100644
--- a/test.out
+++ b/test.out
@@ -16,6 +16,11 @@ assert 5 == say len foo;
# Print the last index of the array
assert 4 == say ind foo;
+
+# Print the 3rd element of the array
+say foo[3];
+
+#say "bla";
Token (id=00000, line=00006, pos=0005, type=TT_FUNC, val=func, ival=0, dval=0.000000, refs=1)
Token (id=00001, line=00006, pos=0009, type=TT_IDENT, val=bar, ival=0, dval=0.000000, refs=1)
Token (id=00002, line=00006, pos=0011, type=TT_PARANT_CL, val={, ival=0, dval=0.000000, refs=1)
@@ -69,6 +74,13 @@ Token (id=00049, line=00018, pos=0016, type=TT_IDENT, val=say, ival=0, dval=0.00
Token (id=00050, line=00018, pos=0020, type=TT_IDENT, val=ind, ival=0, dval=0.000000, refs=1)
Token (id=00051, line=00018, pos=0024, type=TT_IDENT, val=foo, ival=0, dval=0.000000, refs=1)
Token (id=00052, line=00018, pos=0025, type=TT_SEMICOLON, val=;, ival=0, dval=0.000000, refs=1)
+Token (id=00053, line=00021, pos=0004, type=TT_IDENT, val=say, ival=0, dval=0.000000, refs=1)
+Token (id=00054, line=00021, pos=0008, type=TT_IDENT, val=foo, ival=0, dval=0.000000, refs=1)
+Token (id=00055, line=00021, pos=0009, type=TT_PARANT_AL, val=[, ival=0, dval=0.000000, refs=1)
+Token (id=00056, line=00021, pos=0010, type=TT_INTEGER, val=3, ival=3, dval=0.000000, refs=1)
+Token (id=00057, line=00021, pos=0010, type=TT_SEMICOLON, val=;, ival=0, dval=0.000000, refs=1)
+Token (id=00058, line=00021, pos=0011, type=TT_PARANT_AR, val=], ival=0, dval=0.000000, refs=1)
+Token (id=00059, line=00021, pos=0012, type=TT_SEMICOLON, val=;, ival=0, dval=0.000000, refs=1)
bar
0
1
@@ -79,3 +91,4 @@ BA
BB
5
4
+3.000000