Ai Dreams Forum

Member's Experiments & Projects => General Project Discussion => Topic started by: Zero on June 26, 2018, 09:56:51 pm

Title: funny 1arg asm
Post by: Zero on June 26, 2018, 09:56:51 pm
hi,

based on this (http://aidreams.co.uk/forum/index.php?topic=8892.msg35782#msg35782) old thread, here's a super simple esolang. it's an asm, command-colon-argument. commands take only 1 argument. "this" is the result of the last command. "about" puts something in "this".


[fib]
about: argument
if less than: 3
return: 1
about: argument
decrement: 1
fib: this
store as: fib1
about: argument
decrement: 2
fib: this
increment: fib1
return: this


now we use 1 character names for common commands


[fib]
? @
< 3
^ 1
? @
- 1
fib #
$ fib1
? @
- 2
fib #
+ fib1
^ #


and we loose the brackets, newlines, so it looks like hell


fib: ? @ < 3 ^ 1 ? @ - 1 fib # $ fib1 ? @ - 2 fib # + fib1 ^ #

:)