Here are some things:
Pizn is simple
Hello world program:
quickstart
print("Hello, World!")
Semicolons are optional, and no standard library importing needed. The
quickstart
does all of that for you, as well as setting all configs to their default values.
Pizn is easy and fast
Pizn does "garbage collecting", so you don't need to worry about ram stuff. Pizn also has a full documentation, and its syntax is pretty simple. As said above, semicolons are optional. Being created on top of C, Pizn is fast.
Updates every sunday, and you can help!
There will be a new update to Pizn every sunday with some new features and/or bugfixes. And as also said above, Pizn is open-source, meaning if you want Pizn to have something, you can do it right away.
Get started! The compiler is available online at
(link coming soon). Then try this Hello, World! code that is also mentioned above:
quickstart
print("Hello, World!")
Put the code into the left, white textbox that you can edit. The right, black textbox will be the output. Click the Run button and you should see
Hello, World!
in the right textbox!
Variables
You can easily declare variables using
varname = varcontent
. For example, I want to declare a variable named "test" and assign it the text "hello there", so that would be a
test = "hello there"
. Then, you can put the contents of a variable using
<varname>
. Complete code:
quickstart
test = "hello there"
print(<test>)
Loops
Loops can run a certain block of code multiple times. The
repeat
loop will repeat a block of code a specified number of times, so
quickstart
repeat(10):
print("Yay! This will be printed 10 times!")
just prints "Yay! This will be printed 10 times!" 10 times in a row.
quickstart
repeat(10, i = 1):
print('Yay! This has been printed {i} times!')
The code there prints "Yay! This has been printed 1 times!", "Yay! This has been printed 2 times!", "Yay! This has been printed 3 times!", etc. to "Yay! This has been printed 10 times!".
Format strings and numbers
The fact that
''
needed to be used instead of
""
is because
''
represents "format strings". The
{i}
would just display "{i}" if
""
were used instead of
''
.
Numbers are another "data type" from strings (text) which store...well...numbers. No need for
""
or
''
, just put the number right away. Numbers accept all arabic numerals and
.
(decimal point). The syntax for arithmetic operations is exactly the same as other programming languages.
Read the full docs!