Loss't

From Esolang
Jump to navigation Jump to search

Loss't is an Esoteric programming language created by User:Yayimhere, after seeing the Ser2 quine(purely being inspired by its visual look). It is in some ways similair to ///, however differs in a few ways(for example, /// has no required "structure", however Loss't does). It was based off of the idea that the program "was a map that maps its own mapping to some output".

Execution

Loss't uses the following syntax:

--:s :--:y :

These may "overlap" like:

--:s :--:y :--:x :--:z :

which are the same as:

--:s :--:y :
--:y :--:x :
--:x :--:z :

these are called mappings, which map s(the element) to y(the map). Note that when $ comes anywhere on a line, every element on the line is printed and the line is removed.

Execution consists of identifying each mapping, and executing them left to right, top to bottom. Then, for some mapping with s as the element and y as the map, it identifies every mapping, that has s as the map, and collects that mappings element, going left to right and adding them to an ordered list. Then, for every element p in the list, creates a mapping:

--:y :--: p:

and concatenates them together in the order from which each element came from in the ordered list. Then, that line is appended to the program, and execution continues to the next mapping until the end of the program has been reached in which the program halts.

Examples

Infinite loop:

--: .:--: .: