0- Check the main variable, if it is not exist then break this step. 1- Locate the position of the opening bracket symbol ("["). If it exists then : 2- Copy all characters inside the bracket until the block character ("]"). If the end bracket sign is never met, then break its parsing here. 3- Try to convert the string to value number. 4- If the value number is valid, then check the target variable's index. 5- Copy the value from target main variable's index, clean all temporary data, prepare for next element... |
number[50]; //number[50] = 50;
|
|
number[50] : 50 |
number[10 + number[10] + 10]
"10 + number[10" |
|
|
[ ]
0 9 1 8 2 7 3 6 4 5 |