I want to program in this esolang

From Esolang
Jump to navigation Jump to search

inspiration

I want to program in this esolang is a esolang created by User:cleverxia during a lack of ideas. it operates on 5 queues.

Program flow

the 5 queues are called the fact queue, mentalize queue, reify queue, pulverize queue, and program queue.

there's also an array C and 4 registers: mind, matter, strength, cnt. if any of the registers less than 20, it is an error.

The program is first loaded into program queue, pops instructions from that queue, and halts whenever it's empty.

Commands

Caption text
command stands for meaning
a push A into fact queue
m mentalize pops x from fact queue and push into mentalize queue and push a M into fact queue. decreases mind
r reify pops x from mentalize queue and push into reify queue and push a R into fact queue. decreases matter
p pulverize pops x from reify queue and convert into resource and push a P into fact queue. decreases strength
c purify pops x from mentalize queue and make C[x]+=1 and push a Q into fact queue
s synthesize pops two elements from the pulverize queue (call them x,y), decrease C[x] and C[y],
synthesize them, and push result into the fact queue.
y MentAll clear the fact queue and push equal S's into the mentalize queue. pushes a C into the fact queue
f forget pops an element from the mentalize queue and clear the corresponding queue:
element queue
M mentalize
R reify
P pulverize
Q fact
other things none
l loop pushes everything in the fact queue into the program queue, twice, as AMRPQCS -> amrpcso
r recurse pushes everything in the fact queue into the program queue, twicw, as AMRPQCS -> flryhzo
h halt halt
o nop APLWSI interprete
z swap pops x,y from reify queue, swaps queue x and y.

resource conversion

Caption text
resource converted what it does
M mind++;
R matter++;
P strength++;
Q cnt++;
C outputs cnt; cnt=0
S and anything other APLWSI interpreter

synthesize rules

Caption text
elt 1\elt 2 A M R P Q C S
A M P Q S A C R
M P Q M C S R A
R Q C P R M A S
P R S A Q C P M
Q A M C R Q S P
C C R S A P M Q
S S A R M P Q C

example

This section is still a work in progress. It may be changed in the future.

Computational class

I don't know. In fact, we'll never know. It's at least not category:total.