Files
Plasma/tests/variables.pla

16 lines
339 B
Plaintext
Raw Normal View History

depend "string.pla"
depend "io.h"
2025-10-13 21:05:03 +11:00
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 21:05:03 +11:00
MY_CONSTANT: Const(String) = "foo bar";
2025-10-13 06:55:35 +11:00
2025-10-13 21:05:03 +11:00
print(String(myInt));
print(String(myDecimal));
print(String(myBoolean));
print(myString);
print(String(myList));