Lifelang

From Esolang
Jump to navigation Jump to search

Lifelang is a programming language that describes a single day in a life but you can code using it

Elements of the day

These are the elements of the day

Start

when you wake up, the code below start runs

End

this is the end of the day, anything after this is a comment

Commands

Go to [place]

Goes to [place]

Buy [thing] {only works when at store}

Makes [thing] exist as a thing

Store [thing] in bag

Put [thing] into the bag you have

Eat [food] {only works when at some food place, Ex home, restaurant, cafeteria}

Eat [food], which adds one to you like a variable

Talk to [person]

Sets the [person]'s value to your value

As [person]:
Done

Make [person do that]

You {a thing [person] can be}

Yourself

Get [box]

Get a box

Grab first thing from bag

get the first thing from your bag into your hand

Put the thing your holding into [box]

do exacly as it looks like

Grab [box]

get [box] into your hand, note: can put box in box

Check [box] for stuff

Check if there is stuff in [box], if so, run the following If there is block

If there is:
Done

If the thing previously returned true. run this