CounterScript

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

CounterScript is an esolang created in March 2026 by User:Azerty.

Memory

It has an unbounded number of variables that can store any nonnegative integer. All variables are set to 0 by default.

Instruction

Each program has 3 instructions:

Command Description
var++ Increment var by 1
var-- If var is above 0 then decrement var by 1 end
while var > 0 {function} While var is above 0 do function end

Examples

This program increments A forever.

A++; while A > 0 {A++}

This program multiplies 3 by 2.

A++; A++; A++; while A > 0 {A--; B++; B++}

Implementation