Redefine Symbol

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.

Redefine Symbol is an esolang by User:ChuckEsoteric08 inspired by Emmental.

Commands

\ is an escape symbol for push command.

Command Function
[abc] Push string abc to the stack.
% Swap top elements
" Duplicate top element
$ Pop top element and discard it
. Replace top element with last element popped.
= Pop two elements, a and b. Then redifine symbol a as Redefine Symbol program b. If interpreter will reach symbol a then it would replace that symbol with program b.
+ Pop two elements, a and b. Then push ab.
; Output top element.
? Push user input.

Computational class

This program is Underload interpreter, proving that Redefine Sumbol is Turing-complete

[%][~]=[:]["]=[*][%+]=[(][\[]=[)][\]]=[a][\[\\\[\]+\[\\\]\]%+]=[S][;$]=[^][$.]=?$.