RealUnaryMinus¶
Floating point unary minus operator as the second operand of binary arithmetic operators, a
expr
node.
声明¶
语法¶
RealUnaryMinus(expr arg, ttype type, expr? value)
参数¶
Argument Name |
Argument Description |
---|---|
|
expression arguments |
|
table entry type |
|
expression value |
返回值¶
The return value is the expression that the RealUnaryMinus represents.
描述¶
RealUnaryMinus represents real unary minus operand of binary arithmetic operators, to be used without parantheses.
Example : a = b.x * -c.x
类型¶
Only accepts floating point values, exponents.
示例¶
-1.2
ASR:
(TranslationUnit
(SymbolTable
1
{
})
[(RealUnaryMinus
(RealConstant
1.200000
(Real 4 [])
)
(Real 4 [])
(RealConstant
-1.200000
(Real 4 [])
)
)]
)