We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Abjo

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

abjo is stack-based esolang. It differs from other stack-based languages in that it can only push the numbers 1 and 5 and does not have subtraction.

Examples

Hello, world!

5555555555555511+++++++++++++++&

This only prints the ASCII code of the first letter of 'Hello, World!', since writing the full program would be much longer.

XKCD Random Number

1111+++&

python 3.10+

s=[];c=0
for x in input():
    if x=="\\":
        c^=1
    elif not c:
        match x:
            case"1"| "5": s.append(int(x))
            case"`": s and s.pop()
            case"&": print(s)
            case"+": len(s)>1 and s.append(s.pop(-2)+s.pop())
            case _: print(s,"\n \..\ ; 1 ; 5 ; ` ; + ; &");break