Skip to content
Snippets Groups Projects

Reduction Support

Open Richard Angersbach requested to merge rangersbach/reductions into v2.0-dev
Viewing commit 3c5a93b4
Show latest version
1 file
+ 1
0
Preferences
Compare changes
@@ -195,6 +195,7 @@ class FreezeExpressions:
# match for reduction operation and set neutral init_val and new rhs (similar to augmented assignment)
new_rhs: PsExpression
init_val: Any # TODO: type?
match expr.op:
case "+":
init_val = PsConstant(0)