Skip to content

m-lohmann/Deadfish.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Deadfish.jl

Deadfish implementation in Julia

This is the deadfish implementation I uploaded on http://esolangs.org/wiki/Deadfish#Julia

Run a fully compliant version (including the faulty overflow treatment) with infinite input/output loop, using

deadfish() or deadfish(0)

This starts the interpreter loop:

julia> deadfish()
>>

Run a version that exits the loop when entering the command h:

julia> deadfish(1)

Run a version that simulates manual input and appropriate output for any given string of commands: Note that the program ends automatically if the complete string is read.

julia> deadfish("input string")

Example execution to display “Hello World” (or rather the ASCII values of the string):

julia> deadfish("iisiiiisiiiiiiiioiiiiiiiiiiiiiiiiiiiiiiiiiiiiioiiiiiiiooiiiodddddddddd
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddoddddddddddddddddd
ddddsddoddddddddoiiioddddddoddddddddo")
>> i
>> i
>> s
>> i
>> i
>> i
>> i
>> s
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> o
72
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> o
101
>> i
>> i
>> i
>> i
>> i
>> i
>> i
>> o
108
>> o
108
>> i
>> i
>> i
>> o
111
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> o
32
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> s
>> d
>> d
>> o
119
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> o
111
>> i
>> i
>> i
>> o
114
>> d
>> d
>> d
>> d
>> d
>> d
>> o
108
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> d
>> o
100

About

Deadfish interpreter written in Julia

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages