Attribute parsing and ast
This commit is contained in:
@@ -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 ~ ">" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user