A scripting language that makes it easier to program
The ZPE Programming Environment, often just known as the ZPE, is a fully fledged language parser that features a concise programming syntax that produces powerful programs.
ZPE is designed with three core goals:
ZPE also aims to be clean, concise and well documented.
To date, all of these aims have been achieved.
The following samples show some syntax of the language.
function main() $i = 10 //Should print 11 due to pre-increment print(++$i) end function
for($i = 0, $i < 1000, 1) print(floor(++$i + 3.3)) end for
for($i = 0, $i < 1000, $i++) print(floor($++i + 3.3)) end for
when($i) is 1 do print("It is one.") is 2 do print("It is two.") otherwise do print("It is none of them.") end when
The Yet Another Simple Syntax (YASS) has been designed to be similar to that of existing programming languages such as Java, PHP, C, VB.NET, C# and SML.
The syntax has taken the best of all languages.
ZPE is dynamical and weakly typed, allowing variables to be easily reassigned to another value of a different type.
Future versions of ZPE will allow you to force types on variables using the Typo typing system.
Just as with BRS for .NET, the ZenLang syntax has been designed to be quick to write.
Things also read much easier as most of the syntax is designed to read like sentences.
Shorthands and shortcuts help write the code quickly.
Several alternative function names exist, for instance,
be substituted by
Designed for more than simplicity.
Like BRS, ZPE was designed to be an educational language. ZPE is also built well-enough to make it incredibly useful as a programming language for performing other tasks such as system tasks and the like.
$files = directory_list_files("/folder/") for each($files as $file) $img = file_open_image($file) $img = image_transform_resize($img, 600, 400) file_save_image($img, $file) end for
The future of ZPE focuses on efficient designs - reusing what exists already to develop and expand the potential of ZPE.
The ZPE standard library utilises the code from the language itself to develop a library of very powerful functionalities.