Files
Plasma/tests/variables.pla

16 lines
328 B
Plaintext
Raw Normal View History

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]
2025-10-13 06:55:35 +11:00
MY_CONSTANT: Const(String) = "foo bar"
print(String(myInt))
print(String(myDecimal))
print(String(myBoolean))
print(myString)
print(String(myList))