Attribute parsing and ast

This commit is contained in:
2026-05-05 03:17:33 +02:00
parent d9c20467a4
commit f4a14789c3
3 changed files with 114 additions and 24 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ structured_style = { identifier ~ "(" ~ pair ~ ("," ~ pair)* ~ ","? ~ ")" }
pair = { identifier ~ "=" ~ primary }
top_level = _{ attribute* ~ (import | function_decl | struct_decl) }
top_level = { attribute* ~ (import | function_decl | struct_decl) }
import = { sharp ~ "include" ~ "<" ~ static_path ~ ">" }