ComplexUnaryMinus¶
Complex unary minus operator as the second operand of binary arithmetic operators, a
expr
node.
Declaración¶
Sintaxis¶
ComplexUnaryMinus(expr arg, ttype type, expr? value)
Argumentos¶
Argument Name |
Argument Description |
---|---|
|
expression arguments |
|
table entry type |
|
expression value |
Valores devueltos¶
The return value is the expression that the ComplexUnaryMinus represents.
Descripción¶
ComplexUnaryMinus represents complex unary minus operand of binary arithmetic operators, to be used without parantheses.
Example : z = -a + ic
Tipos¶
Only accepts floating point values, exponents, integers.
Ejemplos¶
(-1.2, 3)
ASR:
(TranslationUnit
(SymbolTable
1
{
})
[(ComplexConstructor
(RealUnaryMinus
(RealConstant
1.200000
(Real 4 [])
)
(Real 4 [])
(RealConstant
-1.200000
(Real 4 [])
)
)
(IntegerConstant 3 (Integer 4 []))
(Complex 4 [])
(ComplexConstant
-1.200000
3.000000
(Complex 4 [])
)
)]
)