Tidy up the grammar #94

This commit is contained in:
2026-06-28 07:30:49 +02:00
parent 3c6ebb66c6
commit 64081bc494
5 changed files with 3 additions and 20 deletions
-5
View File
@@ -256,11 +256,6 @@ impl GenRust for Postfix {
Postfix::Try => cg.add("?"),
Postfix::Assign(cmp, expr) => {
cg.add(" ");
cg.add(cmp);
expr.gen_rust(ctx, cg);
}
Postfix::Increment => cg.add("+=1"),
Postfix::Decrement => cg.add("-=1"),
}
-6
View File
@@ -164,12 +164,6 @@ impl GenMist for Postfix {
cg.add(&ty.get_mist());
}
Postfix::Try => cg.add("?"),
Postfix::Assign(cmp, expr) => {
cg.add(" ");
cg.add(cmp);
cg.add(" ");
expr.gen_mist(ctx, cg);
}
Postfix::Increment => cg.add("++"),
Postfix::Decrement => cg.add("--"),
}