dodona-edu / universal-judge

Universal judge for educational software testing
https://docs.dodona.be/en/tested
MIT License
9 stars 4 forks source link

Support array access #442

Closed niknetniko closed 9 months ago

niknetniko commented 9 months ago

Add support for a new "function type": the array access.

While this adds support in the DSL and in the code generation, I would still consider it experimental on the whole, since:

Fixes #325.

Since we will use the [] operator for arrays, we'll use a "magic" function for dictionary/map/object access. That is even more inconsistent in behaviour, so that well be done in another PR eventually.

niknetniko commented 9 months ago

Closing for now, as this isn't a good enough solution.