CounterScript Interpreter

Home page

CounterScript is a minimal model of computation.

It has an unlimited number of variables (called counters), each storing a nonnegative integer.

All counters are initialized to 0.

InstructionDescription
A++;Increment A by 1
A--;If A is greater than 0, decrement A by 1
while A {...}Repeat while A is greater than 0

Example: A++; while A {A--; B++;}