Inertia

From Esolang
Jump to navigation Jump to search

Inertia is 'another' language inspired by User:Hanzlu's usable language definition. But this time, the language is actually quite usable.

Description

Note that the language Inertia has nothing to do with inertia... it contains assignments on a lazy-evaluated tape. The first cell on the tape can be accessed by 1 and has 1 stored in it, the second by 2 and has 2 stored in it, etc, until infinity.

1 = 2   Assign cell #1 to cell #2.
= 1     Output cell # 1.
1 =     (Gotos are the easiest control structure. :) ) Jump to the line stored by the accumulator 1.
=       Left-shift the tape (i.e. perform 0 = 1, 1 = 2, etc. It's lazy-evaluated.)