started work on lexer
This commit is contained in:
18
tests/types.pla
Normal file
18
tests/types.pla
Normal 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, }
|
||||
Reference in New Issue
Block a user