I cannot understand that.

From Esolang
Jump to navigation Jump to search

I cannot understand that. is an esolang invented by User:None1.

Commands

Every line is a command, which prints out "I cannot understand that." without quotes.

Example Programs

Print "I cannot understand that."

Hello World!

Quine 1

I cannot understand that.

Quine 2

I cannot understand that.
I cannot understand that.

Interpreter

Python

print("\n".join(["I cannot understand that." for i in __import__("sys").stdin.read().split("\n")]))

Compiler

Python (ICUT -> C++)

#!/usr/bin/env python3
import sys
lines = 0
with open(sys.argv[1]) as file:
    for line in file:
        lines += 1
with open(sys.argv[2], 'w') as file:
    file.write('#include <iostream>\nint main() {\n'
               f'    for (int i = 0; i < {lines}; i++)'
               ' {\n        std::cout << "I cannot understand that.\\n";'
               '\n    }\n}')
print('The output compilation has been written to the file')
print('Now compiling to machine code')
os.system(f'g++ {sys.argv[2]}')
print('Done!')

See also