Improving operators and suffix

This commit is contained in:
2026-05-21 07:05:58 +02:00
parent b28591f9e6
commit 0878b9f0b9
7 changed files with 43 additions and 72 deletions
+3
View File
@@ -70,8 +70,11 @@ pub enum Postfix {
Call(Vec<Expression>),
MacroCall(String),
StructCall(Vec<(Identifier, Expression)>),
Assign(String, Box<Expression>),
Index(Expression),
As(TypeExpr),
Increment,
Decrement,
Try,
}
-8
View File
@@ -9,11 +9,6 @@ pub struct Block(pub Vec<Spanned<Expression>>);
pub enum Statement {
Block(Block),
VarDecl(VarDeclStmt),
Assign {
target: Expression,
compound: String,
value: Expression,
},
If {
initial: StatementBranch,
else_if: Vec<StatementBranch>,
@@ -37,9 +32,6 @@ pub enum Statement {
Return(Option<Expression>),
Break,
Continue,
Increment(Expression),
Decrement(Expression),
}
#[derive(Debug, Clone, Serialize)]