You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;:
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: