Free2Edit

From Esolang
Jump to navigation Jump to search

Free2Edit is (technically) the first esolang that I made. It's kinda like a Brainfuck derivative, but more powerful. The reason I named it that is because I thought I could implement Free Esolang with this esolang, but I couldn't, so... I guess I could say code written on it is obfuscated?

Instructions

Free2Edit consists of 100000 8-bit cells and you are currently pointing to a cell.

Instructions
Code What it does
[instr][val] [val] must be one digit,[instr] can be +, -, *, /, m, does [instr] on the current cell by [val].
r[val moves the pointer right [val] cells.
l[val] moves the pointer left [val] cells.
oc Outputs current cell as ASCII.
on Outputs current cell as a number.
p[chr] Prints the [chr], where [chr] is one letter long.
ws while current cell isn't 0:
we end while
is if current cell isn't 0:
ie end if or NOP if you want. Doesn't error when unmatched.
gc Get one character and store into cell as ASCII.
gn Get one character and store into cell as a number.
ds[in][code]de Define [in] as [code], where [in] is 2 characters.

Examples

Hello, World!

pHpeplplpop,p pWpoprplpdp!

Cat program

gcwsocgcwe

Copy current cell to next cell

r1ws-1wer1ws-1wel2wsr1+1r1+1l2-1wer2ws-1l2+1r2wel2

99 bottles of beer, with the grammar errors

+9*5*2+9r1+5+5l1wsonpbpoptptplpepsp popfp pbpepeprp popnp ptphpep pwpaplplp,r1ocl1onpbpoptptplpepsp popfp pbpepeprp.r1ocl1pTpapkpep popnpep pdpopwpnp,r1ocl1pPpapspsp piptp paprpopupnpdp,r1ocl1-1onpbpoptptplpepsp popfp pbpepeprp popnp ptphpep pwpaplplp!r1ococl1wepNpop pmpoprpep pbpoptptplpepsp popfp pbpepeprp popnp ptphpep pwpaplplp,r1ocl1pNpop pmpoprpep pbpoptptplpepsp popfp pbpepeprp.r1ocl1pGpop ptpop ptphpep psptpoprpep papnpdp pbpupyp pspopmpep pmpoprpep,r1ocl1p9p9p pbpoptptplpepsp popfp pbpepeprp popnp ptphpep pwpaplplp!

Disan counter

gnws-1r1+1onl1we

Truth Machine

gnwsp1wep0

XKCD Random Number

p4

or

+4on

or

+8*6+4oc

Computation Class

Since Free2Edit is just a Brainfuck derivative, it's Turing-complete as well.

Caption text
Free2Edit Brainfuck
+1 +
-1 -
r1 >
l1 <
gc ,
oc .
ws [
we ]

Implementations

My interpreter that actually works: https://scratch.mit.edu/projects/1260874999/editor/