Lo'reran

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

Lo'reran is a esoteric programming language, language of Li'ara project.

Control

Lo'reran does actions based on symbols that represent them.

Control instructions:
! doing actions
<- leading in results of previous action
-> leading in results of next action
. and _  gets informations from variable's context
.->|. ends command
.|->. starts commands
:--comment--: comment
< and > confront values
brackets [] {} () union actions

Hello world

.|->. out!<-("Hello world"!<-crlf) .->|.

99 bottles of beer

.|->.
num![[int]]99
<?>(num!>1)?:T:!
{
out!<-num!<-" bottles of beer on the wall, "!<-num!<-"bottles of beer."!<-crlf!<-"Take one down and pass it around, "
num!num-1
out!<-num!<-"bottles of beer on the wall."!<-n.2*(crlf)[[arr(2)[[num]]]]
}:f: del!<<num
out!<-"1 bottle of beer on the wall, 1 bottle of beer."!<-crlf!<-"Take one down and pass it around, no more bottles of beer on the wall."!<-n.2*crlf!<-"No more bottles of beer on the wall, no more bottles of beer."!<-crlf!<-"Go to the store and buy some more, 99 bottles of beer on the wall."