Recursion Test

After I've written about 3'700 lines of code of my AEC-to-WebAssembly compiler, I think I'm finally able to implement some simple recursive algorithms, such as Fibonacci Sequence, a function calculating the sum of the first few natural numbers and a function calculating the factorial, in AEC and invoke them from JavaScript.
This only works in very modern browsers. I'm not too interested in targeting archaic browsers here. This only works in Firefox 62 and newer or Chrome 69 and newer. After a few years (if not months), all JavaScript environments will become as capable as they are, rather than like Internet Explorer.




sumFirst(n)=
fib(n)=
fact(n)=
stack_pointer= //Should always be 0.

You can see the source code of the AEC program here.