- A - increments the accumulator
- M - decrements the accumulator
- O - outputs the accumulator
- C - concatenates the accumulator to itself
This language is case-sensitive.
Also created by UndoneStudios
cmd = "++>" while 1: code = input(cmd) accumulator = 0 for i in code: if i == "A": accumulator += 1 elif i == "M": accumulator -= 1 elif i == "O": print(accumulator) elif i == "C": accumulator = int(str(accumulator)+str(accumulator)) else: print("Invalid")