Skip to content

Latest commit

 

History

History
75 lines (55 loc) · 757 Bytes

README.md

File metadata and controls

75 lines (55 loc) · 757 Bytes

z--

What is this?

This is a custom programming language which is way easier to code and understand. Its syntax is very similiar to python and the indendation doesn't matter (its a feature, trust me).

Syntax

# import
imp "file.z"


# output
out ("this")
out (4)
out (4 * 5)
out (true)

# return
ret ("something")
ret (4)
ret (true)
ret (4 * 5)

# input
in a

# initialize
num c
str a


# assignment
c = d

# function
num something(num b, num c):
	d = b * c
	ret (d)
end

void random(str c):
    ret (c+b)
end

# while loop
wh (a < b):
	c = c + 1
end

# if loop
if (a < b):
	out ("lol")
end
elif (b < a):
	out ("ok")
end
else:
	out ("bro")
end


# for loop
for (i = 0, i < 10, i = i + 1):
	out (i)
end

# main function
main:
	# body
end