ComplexUnaryMinus

Complex unary minus operator as the second operand of binary arithmetic operators, a expr node.

Declaration

Sintaxe

ComplexUnaryMinus(expr arg, ttype type, expr? value)

Argumentos

Argument Name

Argument Description

arg

expression arguments

type

table entry type

value

expression value

Valores de retorno

The return value is the expression that the ComplexUnaryMinus represents.

Descrição

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.

Exemplos

(-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 [])
        )
    )]
)

Veja Também

IntegerUnaryMinus, RealUnaryMinus