mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-05-01 22:40:10 +10:00
Added arrays and tables to the bytecode inspector
Currently searching for an issue related to compounds.
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
|
||||
//array outside a table
|
||||
var a = [
|
||||
[1, 2, 3],
|
||||
["alpha": 1, "beta": 2, "gamma": 3],
|
||||
[7, 8, 9],
|
||||
];
|
||||
|
||||
print a;
|
||||
|
||||
//table outside an array
|
||||
|
||||
var t = [
|
||||
"alpha": [1,2,3],
|
||||
"beta": [4,5,6],
|
||||
"gamma": [7,8,9],
|
||||
];
|
||||
|
||||
print t;
|
||||
|
||||
//we need to go deeper
|
||||
|
||||
var deeper = [
|
||||
[1, 2, 3],
|
||||
[
|
||||
"alpha": [1,2,3],
|
||||
"beta": [4,5,6],
|
||||
"gamma": [7,[
|
||||
"delta":10,"epsilon":11,"foxtrot":12
|
||||
],9],
|
||||
],
|
||||
[7, 8, 9],
|
||||
];
|
||||
|
||||
print deeper;
|
||||
Reference in New Issue
Block a user