Original repository here.
We added a few new keywords for students to implement:
i32.mod: computes the moduloi32.pow: computes the powercopy: copy the top of the stackloopn: pop the number of iterationsnand repeats the next instructionntimesbeginfm/endfm: pop theidof afunmacroand defines thefunmacroas the instructions betweenbeginfmandendfmcallfm: pop theidof afunmacroand executes it
To make it simpler, we disabled the type checker, so that the student don't have to worry about it.
The modified wat2wasm converter tool with code examples is available on the webpage of the repository here.
The private repository for this webpage is here.