Implemented Basic Parser

This commit is contained in:
2024-11-14 14:05:47 -05:00
parent 923da9e747
commit aa48976e31
7 changed files with 363 additions and 3 deletions

16
test/hello.w12 Normal file
View File

@ -0,0 +1,16 @@
# Create an enum
enum AnimalType {
Dog,
Cat,
}
# Create a struct
struct Pet {
name: [char], # A list of characters
age: uint, # An unsigned 32-bit integer
type: AnimalType,
living: bool,
}
# Create a function that can be called on a Pet
fn on Pet rename(newName: [char]) {
return "test";
}