Working parser for attributes

This commit is contained in:
2026-05-05 14:43:14 +02:00
parent ce7dc2b9ba
commit e421a81a3d
4 changed files with 63 additions and 26 deletions
+3 -1
View File
@@ -31,7 +31,9 @@ meta_list = {
meta ~ ("," ~ meta)* ~ ","?
}
top_level = { attribute* ~ (import | function_decl | struct_decl) }
attributes = { attribute* }
top_level = { attributes ~ (import | function_decl | struct_decl) }
import = { sharp ~ "include" ~ "<" ~ static_path ~ ">" }