Lines are cool

From Esolang
Jump to navigation Jump to search

Lines are cool is an esolang made by .

Commands

Note that the boxes do not need to be exact. They can be different.

Lines can have arrows at the end of them, but they are not needed. Mainly only used for clarification.

More commands may be added in the future.

Start and end

To start a program, use this.

To terminate a program, use this.

Print

To print something, put it in a blue box.

Blue text means to print a string. Red text means a variable. Green text means a number.

Variables

To define a variable, put the variable name in red text, and its value next to it in green text (optionally, otherwise it goes to 0), and all of that goes in a red box.

You can also set it to another variable, or a string in blue.

Operations

Put the operations in a mini-box inside of another box. An example would be:

If

If is like this:

User input

Just use a purple circle to represent user input.

Red lines

Red lines store values on them. To turn them into variables, put a red box with a name.

Functions

Surround a code snippet into a colored box (apart from black red and blue) with a label above, and then use that box with the label when you want to use that code snippet.

Variable names that start with "t_" are temp variables to be used in functions and not anywhere else.

Merger

A merger merges code streams back into eachother. An example was used in the example for functions.

Examples

More exmaples may be added in the future.

Hello World

Truth-machine

7 bottles of tommyaweosme

(note: this one uses blue for numbers)

A+B problem

Looping counter

Factorial

See also

  • , a similar language.