From Esolang
Jump to navigation Jump to search

ADxc is invented by User:A.


Suppose your snippets were AD, xc, 123, and ;l. Then:

  • AD should produce 1
  • ADxc should produce 2
  • ADxc123 should produce 3
  • and ADxc123;l should produce 4.

This program would have a score of 4. ``` A: Push 0.5 onto the stack D: Multiply by 2 x: Push 1 c: Bitwise left shift by the top of the stack 123: Push the constants 1, 2, and 3.

Summation of the stack

l: Divide by 2

The top of the stack is outputted by default. ```