- Not enforced yet, but thinking about
.lang
.
- Yes, whitespace doesn't matter, and semicolons are the only way to signify the end of statements.
num x = 5;
- Can reassign the value of variables with
x = 2;
- Can increment with
x += 2;
num
: Integerlist
: Liststring
: String
- Can use either
"
or'
. - Can convert any type to string with
myInt.toString()
- Declare with
list[num] myList = [1, 2, 3]
(can also declare as empty) - Access element with
myList.get(0)
- Add element with
myList.add(4)
- Modify element with
myList.set(0, 1234)
- Get length with
myList.length()
-
while(count < 10) { count += 1; }
+
: Addition-
: Subtraction*
: Multiplication/
: Division
#
: Single-line comment