SusLang

From Esolang
Jump to navigation Jump to search

SusLang is an among-us-themed esolang written in C#.
It was invented by Zenonet (a German hobby programmer) in 2022. You can find more information about SusLang here Also there is an online interpreter available here


The language isn't turing complete because it doesn't have an infinite amount of possible variables. Instead it has 18 variables named after the 18 player colors is Among Us. Every variable/color has a value (1 byte) assigned to it, which is called the 'SusMeter'. It determines how sus a color is.

You can change the SusMeter of a color using these 4 statements:

  • <color> killed increases the value of <color> by 10
  • <color> vented increases the value of <color> by 1
  • <color> wasWithMe decreases the value of <color> by 10
  • <color> didVisual decreases the value of <color> by 1

You can select a color using sus<color> Using emergencyMeeting you can write the value of the currently selected color to the output.
Instead of writing the name of a color in a statement, you can also you he as a reference to the currently selected color

You can write a helloWorld-script like this:

 //This is a simple HelloWorld script for susLang

// Writing H
sus cyan
cyan killed
cyan killed
cyan killed
cyan killed
cyan killed
cyan killed
cyan killed
cyan vented
cyan vented
emergencyMeeting

// Writing e
cyan killed
cyan killed
cyan killed
cyan wasWithMe
emergencyMeeting

// Writing l
cyan killed
cyan wasWithMe
cyan wasWithMe
cyan wasWithMe
emergencyMeeting

// Writing the l again
emergencyMeeting

// Writing o
cyan vented
cyan vented
cyan vented
emergencyMeeting

// Writing a space
sus red
red killed
red killed
red killed
red vented
red vented
emergencyMeeting
 
// Writing W
sus cyan
cyan didVisual
cyan didVisual
cyan wasWithMe
cyan wasWithMe
cyan wasWithMe
cyan wasWithMe
emergencyMeeting

// Writing o
cyan killed
cyan killed
cyan vented
cyan vented
cyan vented
cyan vented
emergencyMeeting

// Writing r
cyan vented
cyan vented
cyan vented
emergencyMeeting

// Writing l
cyan didVisual
cyan vented
cyan vented
cyan vented
cyan vented
emergencyMeeting

// Writing d
cyan didVisual
cyan vented
cyan vented
emergencyMeeting

// Writing !
sus red
red vented
emergencyMeeting