Written by LandonThePancake in Python v3.12
Dualfish is a esoteric programming language heavily inspired by another language named "deadfish". This language aims to add more to deadfish with the goal of making it slightly more interesting (whilst also making no god damn sense). 'Dual'fish gets its name from having two registers to work with instead of just one like deadfish. It really doesn't take rocket science to find out where the 'fish' part came from, so don't ask.This is my first interpreter, and it definitely shows with how the code is structured, But im pretty proud of what i was able to pull off. you can type 'help' in the interpreter for a list of functions
So you wanna make something in Dualfish? Are you SURE you have nothing else you should be doing? No responsibilities to take care of? Alright then,
In Dualfish you have these things called "registers", two to be exact. Both of these hold a INT that start at 0 that can be modified to your liking. you can freely switch between these with the "<, >" commands, but I'll go over that a bit more later. "i" stands for increment and adds 1 to the register, while "d" stands for decrement and subtracts 1 to the register.
Increment
Input: iiio
(register 1 will equal 3)
Decrement
Input: dddo
(register 1 will equal -3)
Squaring
Input: iiiiso
(register 1 will equal 16)
Cubing
Input: iiiico
(register 1 will equal 64)
o
Input: iiisdo
Output: 8
0
Input: iiisd0
Output: [8, 0]
"a" stands for alphabet, and is a bit more complicated than the other functions. It outputs an alphabetical letter, corresponding to a registers current INT value. So 1 = a, 2 = b, 3 = c, etc... Once you break past 26, you get to capital letters. So 27 = A, 28 = B, 29 = C etc... And past 52, it crashes the interpreter! (I'll fix it later)
Input: iiiiiiiiaia
Output: hi
Input: iiii>iiiii0
Output: [4, 5]
Input: iii*o
Output: 6
Adding
Input: ii>iiii+0
Output: [2, 6]
Subtracting
Input: >iiii<iiiii-0
Output: [1, 4]
Input: iiifo
Output: -3
Input: iiiii>iiiiir0
Output: [0, 0]
Written by Me (smallest hello world i've made)
Input: iic**iiarii*ia>iii*i<+aa>dddd<+a>dddaiiiciiiiiii<+ariiii**da>iii<+a>*<-arii*a
Output: Hello World
Written by Techsec
Input: ii*i**>ii*isi<+arii**arii*iar>a<rii***iarii*i**iarii**iariiiarii*i*iar>a<riiariiis*arii*i*>ii*i<+arii*i**iiiarii*iii*ar>a<riii*arii*i*>ii*i<+arii***>ii**<+ar>a<ii*i**arii**arii*iar>a<iii**ariarii****>iii*<-arii*isar>a<ii*arii*i*>ii*i<+arii*>iii<+a
Output: The quick brown fox the lazy dog