compiler

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.deepztream.com/compiler
Log | Files | Refs

example.4 (190B)


      1 exp(b, e) {
      2   decl r = 1;
      3   if (!e) return 1;
      4   while (e > 1) {
      5     if (!(e % 2)) b = b * b, e = e >> 1;
      6     else e = e - 1, r = r * b;
      7   }
      8   return b * r;
      9 }
     10 
     11 _start() {
     12   exit exp(3, 4);
     13 }