Reduce prefix expression with unary minus wrapping literal, to literal with negative value #195
Labels
Looking for assignee
Looking to contribute? Browse these.
Not too difficult
May be good if you are new to project
This has already been done for integer literals and float literals.
It remains to be done for timing literals. Because we have shoehorned imaginary literals into all code for handling timing literals (distinguishing finally when we build the ASG) the same reduction needs to be done for imaginary literals.
Following the pattern for integer and float literals will be quite boiler platey. But it is Rust after all.
For example, here is a part of the ASG structure for
-10.1 im;
:For a plain-vanilla floating point literal
-10.1;
this is reduced toSee also
asg::Expr::UnaryExpr(UnaryExpr)
forUnaryOp::Minus
#94The text was updated successfully, but these errors were encountered: