User:Tommyaweosme/ascii golfing
Jump to navigation
Jump to search
ascii golfing is an esolang construction project where tommyaweosme will try and make the shortest programs with ASCII.
commands
" string mode toggle
# num mode toggle
q list mode toggle
\ escape character
p push following string, num, or list to stack
> output top of stack and pop
< output top of stack
| skip next command if top of stack is 0
+ add top two of stack
- subtract second-top from top
x multiply top two of stack
/ divide top by second-top
$ modulo top by second-top
% swap top two
: rotate top 3 cw
; rotate top 3 ccw
v pop top of stack
[ brainfuck left bracket with top of stack
] brainfuck right bracket with top of stack
{ create portal name
} finish portal name creation
e end program
. go to portal name
, end portal name
a convert top of stack to and from ASCII and number depending on its current type. if string, turn to list. if list, turn to string.
i push input to stack
intricacys
|.a,e{a}>
if the top of stack is 0, nothing will happen.
if the top of stack is 1, 1 will be outputted once.
end of bracket isnt needed if it goes to the end of program, same with end portal name, or string or num mode
truth machine
i<[<
hello world
p"Hello, world!">