RealUnaryMinus¶
Floating point unary minus operator as the second operand of binary arithmetic operators, a
expr
node.
Declaration¶
Syntax¶
RealUnaryMinus(expr arg, ttype type, expr? value)
Arguments¶
Argument Name |
Argument Description |
---|---|
|
expression arguments |
|
table entry type |
|
expression value |
Return values¶
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
Types¶
Only accepts floating point values, exponents.
Examples¶
-1.2
ASR:
(TranslationUnit
(SymbolTable
1
{
})
[(RealUnaryMinus
(RealConstant
1.200000
(Real 4 [])
)
(Real 4 [])
(RealConstant
-1.200000
(Real 4 [])
)
)]
)