Only requirements is Python 3.11 or above. That's literally the only requirements...
If you don't have that, then you can always use an online interpreter to run on as there is only one file
Expressions are basically something that has a value, for example: (1 + 2) * 3 is an expression because it has a value of 9. In this language, expressions are evaluated like how you learned PEMDAS or BODMAS at school
On the other hand, statements don't have a value, but they are like commands that tell the language what to do. In this language, each statement must end with a ;
This language currently has int, float, boolean, and null_t implemented
int is a data type that represents an integer, like -67 or 2026 (definitely didn't put those on purpose)
You can perform 7 different operations on int, these include:
int + intorint + float: additionint - intorint - float: subtractionint * intorint * float: multiplicationint / int: integer division (does NOT return fractional parts)int / float: normal division+int: unary plus-int: unary minus, also known as negation
float is a data type that represents a real number value, people would know it as decimals, like -2026.67 or 61.2025 (definitely didn't put those on purpose again)
You can perform 6 different operations on float, these include:
float + intorfloat + float: additionfloat - intorfloat - float: subtractionfloat * intorfloat * float: multiplicationfloat / intorfloat / float: normal division+float: unary plus-float: unary minus, also known as negation
boolean is a data type that only has 2 different values: TRUE or FALSE, although you have to access it through true or false
null_t is a data type that only has 1 and only 1 single value: NULL. But you have to access it through null
Variables are like containers of data. Each variable can store one value. To get the value of a variable, just type the name of it.
You can use variables in different kinds of operation like + or *. You can basically replace a variable with a number
Variable names also have rules in order to support programming languages, these include:
- Variable names must start with alphabetical letters (
atoz,AtoZ) or underscore for some reason (_) - Variable names can only have alphabetical letters, digits (
0to9), and underscore for some reason (_), no special characters, no space characters - Variable names must not match with the keywords list of the language
But the program does not know what values do the variables start with? That's why we have variable declarations, which is a statement
Variable declarations basically just creates a variable and store it with some value. To declare a variable, choose one of the following ways:
let <variable_name> = <value>;: initializes the variable with the value specifiedconst <variable_name> = <value>;: initializes the variable with the value specified, but the variable later can't be changed as the variable now is a constantlet <variable_name>;: initializes the variable with the valuenullconst <variable_name>;: initializes the variable with the valuenulland the variable later can't be changed as the variable now is a constant