Skip to content
/ z-- Public

Compiler for my custom programming language based on C++

Notifications You must be signed in to change notification settings

AB7zz/z--

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Compiler for my custom programming language based on C++

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published