Ordinal Brainf**k

Here is a ordinal version of Brainf**k. It uses BF commands but 4 new commands, and memory will have infinite 'ordinals' cells starting with 0:

  • | - Reset the data pointer into 0.
  • ~ - Increase the data pointer by w.
  • { - Jump forward into } if the data pointer and next cell after the data pointer aren't the same.
  • } - Do nothing.

Ordinals

Up to w^2

It is really simple.

  • w. - w
  • w+. - w+1
  • w++. - w+2
  • ww. - w2
  • ww+. - w2+1
  • www. - w3
  • wwww. - w4

Up to w^3

Now we can add 2 more commands.

  • w>[w<{>}>]<. ~ w^2
  • w>[w<{>}>]<+. ~ w^2+1
  • w>[w<{>}>]<w. ~ w^2+w
  • w>[w<{>}>]<ww. ~ w^2+w2

But how to add ordinals? It would look like this, first variable A in first cell and second variable B in second cell, as [>+<<+>{>>}]<~<~<. This will build w^2*2:

  • ??? ~ w^2*2

More coming soon!