Compiling:
cd src
javac *.java
Running: java Interpreter [filename]
All programs must start with wagwan my slime
and end with chat wit u later fam
.
Double quotes (for strings) and parentheses (for expressions) work as normal.
Name | Actual value |
---|---|
peng | true |
bawbag | false |
nuttin | 0 |
bar | 1 |
bice | 2 |
beehive | 5 |
bender | 6 |
Name | Type | Equivalent in other languages | Description |
---|---|---|---|
man say | Monadic | Outputs the text with a newline after. | |
3up my man | Mondaic | del | Deletes the value of a variable. (Currently functionally useless) |
is | Dyadic | Variable assignment | Assigns the name on the left side to be equal to the value on the right. |
be | Dyadic | == | Checks for equality. |
n | Dyadic | + | Addition. |
o | Dyadic | or | Or for booleans. |
x | Dyadic | * | Multiplication. |
ova | Dyadic | / | Division. |
leftova | Dyadic | % | Modulo. |
witout | Dyadic | - | Subtraction. |
lickler den | Dyadic | < | Less than. |
bigger den | Dyadic | > | Greater than. |
not | Monadic | not | Not. |
Template | Type | Usage |
---|---|---|
rip dat bong till [expression] n dat |
while loop | Executes [statements] as long as [expression] is true. |
ayy bossman [expression] init bruv |
if statement | Executes [statements] if [expression] is true. Otherwise, executes [optional statements] if they exist. (Note that you still need the second yeah even if the else block doesn't exist.) |
pass me [variable name] from asda lad |
input | Sets the value of [variable name] to the next line of input from stdin. |