Atemlanguage

From Esolang
Jump to navigation Jump to search

Atemlanguage is a concept by User:TenBillionPlusOne.

New introduction

Suppose that you have a program P, which takes uset input an does some things with it.
Now, instead of entering the input to the interactive evironment while the program runs, we can write the input in separate file instead. Each time the program will need the user input, it will read the single entry in the file and make different things according to what was already read.
Now you can see that the program can be seen as a programming language interpreter. The language which is interpreted is atemlanguage, the file is a program, and the entries are instructions.
I hope this explanation was helpful.

Old introduction

Atemlanguage of program P is a language that simulates P and its instructions are input(s) taken by P.

Simprogram is a program than an atemlanguage simulates, and atemprogram is a program written in an atemlanguage.

For example, let's take the following BF program:

,[.,]

this is a cat program - it takes one character as input, prints it and repeats. So an atemlanguage of the program does the same, except instead the user inputs there's an atemprogram, so every instruction prints itself, so every program is a quine.

A more complicated example is I/M Machine, an atemlanguage of InterpretMe.