ТРАХАТЬ РОТ

From Esolang
Jump to navigation Jump to search

ТРАХАТЬ РОТ (it will be FUCK MOUTH in english) It's somewhat similar to small. ТРАХАТЬ РОТ uses the ТРАХАТЬ and РОТ commands.

Commands

Command Description
ТРАХАТЬ increment acc
РОТ Output acc as ASCII

I don't know if the delimiter counts as a command, but the delimiter here is ' '. Not '|' or anything like that.

Interpreter

Python

code = input()
tokens = code.split()
acc = 0
for token in tokens:
	if token=="ТРАХАТЬ":acc+=1
	elif token=="РОТ":print(chr(acc % 256))

Examples

XKCD Random Number

ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ ТРАХАТЬ РОТ