Nevermind

From Esolang
Jump to navigation Jump to search
Nevermind
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

Functions in Nevermind
Code Description Syntax Example
print 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
if,$operation,==,-
 make,final,$a,-,$b
 print,final
if,$operation,==,*
 make,final,$a,*,$b
 print,final
if,$operation,==,/
 make,final,$a,/,$b
 print,final

Implementations