Snakel

From Esolang
(Redirected from Snakel (DifferentDance8))
Jump to navigation Jump to search
Official logo since 2005

Snakel is an alternative universe version of Python created in 1989 by Tolly Edd in the gammaline universe

Tour of the language

Since i don't want to make this page long. See all of those subpages in order

Examples

Hello, world!

­ 1: def main:none;tell["Hello, world!\n"]

translated into python:

print("Hello, world!")

Cat program

­ 1: def main:none;tell[user]

translated into python:

print(input())

Truth-machine

­ 1: def truth:none;
­ 2: ­ ­ ­ ­ num i=user
­ 3: ­ ­ ­ ­ if i>0;ignore | tell[0];end
­ 4: def main:none;
­ 5: ­ ­ ­ ­ truth[]
­ 6: ­ ­ ­ ­ while 1:tell[1]

translated into python:

def truth():
    i:int=input()
    if int(i)>0:return
    else:print(0);exit()
truth()
while 1:print(1,end="")

A+B Problem

­ 1: def APB [num[a,b]];tell[a+b]
­ 2: def main:none;APB[7,4]

translated into python:

def APB (a:int,b:int):print(a+b)
APB(7,4)

See also

Bake - The language made before the first version of Snakel was uploaded