Open Mustafif opened 2 months ago
Further details were explained in https://mufiz.hashnode.dev/indexing-proposal-in-jade-release
Initial support of indexing for setting and getting is at https://github.com/Mustafif/MufiZ/commit/b581abda6fcb09608434c17d89ef6401cd60490d
We hope to introduce native indexing for arrays and float vectors, since we still have pending work on Matrix, and many things can change with that, its better to bring the initial support for arrays/float vectors.
Syntax:
We will follow similar to Matlab, and reduces the need for extra tokens to declare.
Stack Representation:
We will need to introduce a new instruction
OP_INDEX
that will be when we have an indexable typeObjArray/FloatVector
on the left, follow by Left Paten, an integer constant, then right parent.So we expect:
First thing to figure out, how can we reproduce this by the following:
Once we can make this possible, then we can have the same behaviour called to the OP_INDEX instruction