From dc1cdfb8f8b3130aaff6e92eaf1042e52e8a1a3a Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 30 Oct 2009 15:09:39 +0000 Subject: --- test.out | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test.out') 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 -- cgit v1.2.3