Inputbrain

From Esolang
Jump to navigation Jump to search

Inputbrain is BF derivate made by User:ChuckEsoteric08. It goal was to make Turing-complete language that can be implimented in FakeScript and it was failed, because FakeScript can't make variables and tape need to be bounded

Commands

Command Meaning
, Ask input, set current cell to it and print it
> Move pointer to the right
< Move pointer to the left
[ Jump past matching ] if cell is zero
] Jump back to matching [

Interpreter

goto inp 
!label c1 
input 
print #input 
goto inp 
!label c2 
input 
print #input 
goto inp 
!label c3 
input 
print #input 
goto inp 
!label c4 
input 
print #input 
goto inp 
!label c5 
input 
print #input 
goto inp 
!label c6 
input 
print #input 
goto inp 
!label c7 
input 
print #input 
goto inp 
!label c8 
input 
print #input 
goto inp 
!label c9 
input 
print #input 
goto inp 
!label c10 
input 
print #input 
goto inp 
!label inp 
input 
if #input 1 c1 
if #input 2 c2 
if #input 3 c3 
if #input 4 c4 
if #input 5 c5 
if #input 6 c6 
if #input 7 c7 
if #input 8 c8 
if #input 9 c9 
if #input 10 c10
goto inp 

It has 10 cells(you can add more if you edit code). It is possible to translate any inputbrain program without instruction "<" to FakeScripts

How it works

First, select cell. 1 if you want to go to cell 1, 2 for cell 2 and ect. Second, Input somthing, it will output it and you need to select cell agin. It also has no loops because whole progam is inside it. It has no ">" and "<" because you can't make it in FakeScript