Keywords

From Esolang
Jump to navigation Jump to search

Keywords is a programming language that seems normal

Normal stuff

Print

1 print “hi”

Funcs

1 def hi:
2   print “hi”
3 hi

Return

1 def same (a):
2   return a
3 same 1 #1

Operations

1 1+1
2 2*2
3 3^3
4 4-4
5 5/5
6 6throot(6)

End

1 end

Line Numbers

1 print “every line starts with line number like BASIC”
2 end

Wait...

Where are the variables

1 end = “hello” #assigned a keyword
2 print end #hello
3 4 = “print 4” #line 4 is now print 4
4 print 4 #line 4 is turned into this after line 3 is ran, prints “print 4”