started writing examples for the syntax

This commit is contained in:
SpookyDervish
2025-10-12 21:15:17 +11:00
parent b92ba37bfc
commit 6da4f73ffb
4 changed files with 32 additions and 0 deletions

13
tests/variables.pla Normal file
View File

@@ -0,0 +1,13 @@
depend "string.pla"
myInt: Int = 123
myDecimal: Float = 0.456
myBoolean: Bool = true
myString: String = "Hello!\n"
myList: List = [1, "hi", true, [1, 2, 3], 0.789]
write(String(myInt))
write(String(myDecimal))
write(String(myBoolean))
write(myString)
write(String(myList))