Macro delimiter

This commit is contained in:
2026-06-03 18:12:30 +02:00
parent 4683a3039e
commit 269e43930f
4 changed files with 40 additions and 10 deletions
+11 -1
View File
@@ -39,11 +39,21 @@ pub enum Pattern {
Path(bool, Path),
}
#[derive(Debug, Clone, Serialize)]
pub enum MacroDelimiter {
Paren,
Bracket,
Brace,
}
#[derive(Debug, Clone, Serialize)]
pub enum Postfix {
FieldAccess(Identifier, Option<Generics>),
Call(Vec<Expression>),
MacroCall(String),
MacroCall {
inner: String,
delimiter: MacroDelimiter,
},
StructCall(Vec<(Identifier, Expression)>),
Assign(String, Box<Expression>),
Index(Expression),