Nuwora
Jump to navigation
Jump to search
Nuwora is a language made by user:GluonVelvet to be as difficult as possible to program in. It uses reverse imperative processing to read code. What this means is it reads code from the bottom to the top and reads all lines from finish to start including all the words. To indicate that what you’re writing is text or numbers to Nuwora, you must write in reverse morse code using . and - with spaces between all the letters to form a word. If you happen to make an error, it will only return “Segmentation fault (file dumped)” and inside the text file inputted into the interpreter the only text in the file will be “Do better next time.” Below is a table with all the Nuwora symbols and what they do.
0 | Ends a program or a loop or the code executed in a conditional statement |
1 | Begins a program or a loop or the code executed in a conditional statement |
2 | and |
3 | or |
4 | not |
5 | xor |
6 | xnor |
7 | Removes any sixes and nines that may be in the program but only if a 9 is directly next to it (xnor, ....-, 9, and .----) this can cause errors if ....- or .---- is used for a condition |
8 | Creates an infinite loop with no condition or ability to execute code |
9 | Activates the letter 7 if placed before or after it (7 will eat 9 to scare away 6) |
() | For use in math and specifying conditional scope and other such things |
+ | plus |
_ | minus |
* | multiply |
/ | divide |
% | modulo |
. | morse code dot |
- | morse code dash |
\ | counts as space when making text |
` | counts as a newline character when making text |
~ | While numbers are between them they count as text, also does nothing to strings |
< | greater than |
> | less than |
^ | greater than or equal to |
v | Less than or equal to (lowercase specifically) |
: | comparative operator |
[ | Starts a while loop while a condition in () is true |
| | breaks a loop |
] | If statement for condition in () |
{ | Else if for condition in () |
} | Else for condition in () |
@ | Create a variable |
= | Assign value to variable |
! | type variable as int |
" | type variable as string |
$ | type variable as boolean |
& | type variable as float |
? | type variable as dynamic variable |
, | Take input from user and store it in a temporary variable |
' | Temporary input variable |
; | Prints text, string variables, and non string variables inside ~s that are inside () |
# | comments out any text in the line to the left of it |
Code Examples
Hello, world!
0(..- ..-. .-. --- --. \ --- .. .. . ....);1
Truth Machine
0(~-----~); 0(~----.~);1(----.:var)[ '=var!@,1
Cat Program
0(~'~);,1(true)[ works because 1:1 is true, would be false if it was something like 1:2#1:1=true$@1