Nerplang
Jump to navigation
Jump to search
This article is a work in progress. ...Well, all the articles here are, in a way. But this one moreso, and the article may contain incomplete information and editor's notes. |
Code
| Code | Comment |
|---|---|
THIS PROGRAM WILL LIVE |
Introduces the program. |
APPROVE [library] |
Library inclusion. |
SEAL [message] |
Prints a message to the screen. |
DAMN [variable] |
Creates a variable. |
PIPIS [comment] |
Adds a comment, which is ignored by the compiler. |
THIS PROGRAM WILL DIE |
Terminates the program. |
{[code]} LOOPED X TIMES |
Loops a block of code X times. |
[condition] THE SEAL SAYS: |
If statement. |
BUT [condition] THE SEAL SAYS: |
Elif statement. |
SEAL HATERS SAY: |
Else statement. |
ETERNALLY DAMN {[code]} UNTIL [condition] |
Do-While loop. Regular While loops do not exist in Nerplang. |
“string” |
String literal. Must be curly quotes. |
There are 3 types: Strings, Numbers, and Prime Numbers. Please note that the Number type can not hold a prime number. 1 is considered a prime number.
Example 1
THIS PROGRAM WILL LIVE APPROVE STDIO SEAL "Hello, world!" THIS PROGRAM WILL DIE
Outputs:
Hello, world!
Example 2
THIS PROGRAM WILL LIVE APPROVE STDIO DAMN a = 1 DAMN b = 2 SEAL a + b THIS PROGRAM WILL DIE
Outputs:
3