started work on lexer

This commit is contained in:
SpookyDervish
2025-10-13 06:55:35 +11:00
parent 6da4f73ffb
commit 07ca0fcc32
7 changed files with 193 additions and 6 deletions

18
tests/types.pla Normal file
View File

@@ -0,0 +1,18 @@
depend "io.pla"
enum Gender {
male,
female
}
struct Person {
name: String,
age: Int = 0,
speak: Func
}
speak = Func(sentence: String): Nil {
print(sentence)
}
max: Person = {"Max", 17, }