+=-, -=+
Jump to navigation
Jump to search
- This is still a work in progress. It may be changed in the future.
![]() |
|
Designed by | User:7rigs |
---|---|
Appeared in | 2025 |
Computational class | Unknown |
Reference implementation | Unimplemented |
Overview and Description
+=-, -=+ (can use -=+, +=-, but better will be +=-, -=+) is an esolang developted by User:7rigs
Good and/or useful programs are hard to write, because +=-, -=+ is THE DUMBEST CALCULATOR I SAW3a
Inspiration
+=-, -=+ was inspired by Inverted and something brainfuck with GolfScript
Commands
+
+
decrements current number by 1
-
-
increments current number by 1
d
d
increments current number by 1 and print it (I added this to keep Golf interested. )
i
i
decrements current number by 1 and print it (I added this to keep Golf interested. )
=
=
outputs current number to console
o
o
outputs current number to console and then zeroing it (I added this to keep Golf interested. )
1
1
outputs 1 then 2 then 3 (I added this to keep Golf interested. )
Implementation(interpreter)
Official Python Interpreter
code = input(">>>") cur = 0 for ch in code: if ch == '+': cur -= 1 if ch == '-': cur += 1 if ch == 'd': cur += 1 print(cur) if ch == 'i': cur -= 1 print(cur) if ch == '=': print(cur) if ch == 'o': print(cur) cur = 0 if ch == '1': print("1\n2\n3")