Nevermind
Jump to navigation
Jump to search
Designed by | User:OfficialCraftCGame |
---|---|
Appeared in | 2021 |
Computational class | Total |
Major implementations | Interpreter |
File extension(s) | .neverm |
Nevermind is a simplistic programming language made by User:OfficialCraftCGame in 2021. It uses commas (,) to separate arguments. There is no escape character so to add a comma in text, you must substitute the comma with *44. To use a variable as an argument in a function, start the variable with the letter $. To add an integer to another integer, use +. For concatenating string, use double plus signs ++.
Functions
Code | Description | Syntax | Example |
---|---|---|---|
Outputs text to the screen. Can have more than 1 argument | print,output | print,Hello*44 World! | |
input | Gets input from the user and stores it in a variable called answer. | input,prompt | input,How are you? |
make | Creates a variable | make,name,value | make,variable1,1234 |
if | An if statement. Checks if a is either greater than, equal to, or less than b. | if,a,[== / > / <],b | if,$variable1,==,1234 |
endif | Ends the if statement | endif | endif |
loop | Loops the code inside x times. | loop,x | loop,10 |
endloop | Ends the loop | endloop | endloop |
Code Examples
Hello World
This is a "Hello, World!" code example:
print,Hello*44 World!
the output is:
Hello, World!
Truth Machine
An infinite loop is currently unable to be made in Nevermind, which means a Truth Machine is not possible to be created.
Calculator
An example of a calculator written in Nevermind
input,a: make,a,$answer input,b: make,b,$answer input,operation: make,operation,$answer if,$operation,==,+ make,final,$a,+,$b print,$final endif if,$operation,==,- make,final,$a,-,$b print,$final endif if,$operation,==,* make,final,$a,*,$b print,$final endif if,$operation,==,/ make,final,$a,/,$b print,$final endif
Implementations
- A Python interpreter by User:Bangyen.
- Another Python interpreter made by User:OfficialCraftCGame