Files
Plasma/tests/variables.pla
SpookyDervish 4e17674361 updated examples a tiny bit
gonna start work on actual compiler now
2025-10-13 18:03:13 +11:00

16 lines
328 B
Plaintext

depend "string.pla"
depend "io.h"
myInt: Int = 123
myDecimal: Float = 0.456
myBoolean: Bool = true
myString: String = "Hello!\n"
myList: List = [1, "hi", true, [1, 2, 3], 0.789]
MY_CONSTANT: Const(String) = "foo bar"
print(String(myInt))
print(String(myDecimal))
print(String(myBoolean))
print(myString)
print(String(myList))