SanityScrew is a programming language designed for chaotic and unpredictable coding experiences.
SanityScrew emphasizes randomness, unpredictability, and chaos in programming. It's designed to make code execution entertaining and unconventional.
SET <var> <value>
: Set variable to a value.ADD <var> <value>
: Add value to variable.SUB <var> <value>
: Subtract value from variable.MULT <var> <value>
: Multiply variable by value.DIV <var> <value>
: Divide variable by value.MOD <var> <value>
: Modulo variable by value.RAND <var> <min> <max>
: Generate a random value between min and max and assign it to variable.
IF <condition>
: Start an if block based on condition.ELSE
: Else block in an if statement.ENDIF
: End if block.WHILE <condition>
: Start a while loop based on condition.ENDWHILE
: End while loop.
PRINT <var>
: Print variable value.INPUT <var>
: Input value into variable.
SLEEP <seconds>
: Pause execution for specified seconds.WAIT <seconds>
: Same as SLEEP.HIDE <comment>
: Hide a comment in code.EXIT
: Exit the program abruptly.
COOK <line_number>
: Reverse a line of code.INJECT <var> <value>
: Inject value into a variable with random purity.TRIP <var>
: Generate hallucinated values for a variable.DUO
: An interactive dialogue with the Duolingo owl.RICK
: Random Rick and Morty quotes.SPAGHETTI
: Random spaghetti-related actions.HEISENBERG
: Change program state unpredictably.EXPLODE
: Modify code sequence unpredictably.METHHEAD
: Introduce wild behavior.OVERDOSE
: Abruptly end program execution.
DANCE
: Dance like nobody's watching.SHUFFLE
: Shuffle a deck of cards.TEA
: Make a cup of tea.KETTLE
: Boil the kettle.CAR
: Drive a car.WALK
: Take a walk.WRITE
: Write a story.READ
: Read a book.COMPILE
: Compile the code.SING
: Sing a song.TALK
: Have a conversation.THINK
: Ponder life's mysteries.EAT
: Enjoy a meal.DRINK
: Have a drink.SWIM
: Take a swim.FLY
: Soar through the skies.JUMP
: Jump for joy!RUN
: Go for a run.STOP
: Stop the program.
To use SanityScrew, write your code using the provided commands and execute it using a SanityScrew interpreter or compiler.
./sanityscrew_interpreter program.ss