User:U$3rname008/The language

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Instructions[edit | edit source]

1L_a is a two-dimensional programming language, which means the code is not neccesarily executed in a linear order. So when the program starts, a pointer spawns on the first character of the first row, heading down. It will go forward every step and execute the comman it reaches, unless something changed its direction.

There's two instructions: GO and STOP. The GO instruction do different operations depending on the pointer's direction, though.

The intepreter will remember the first character of your program, and every time it reaches that character, the GO instruction is executed. Everything else executes STOP. I personally prefer using the whitespace for the GO-triggering character, because you could trace how the pointer moves by just looking at the program easily.