IntegerUnaryMinus¶
Uniry minus operator as the second operand of binary arithmetic operators, a
expr node.
Declaración¶
Sintaxis¶
IntegerUnaryMinus(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 IntegerUnaryMinus represents.
Descripción¶
IntegerUnaryMinus represents integer unary minus operand of binary arithmetic operators, to be used without parantheses.
Example : a = b * -c
Tipos¶
Only accepts integers.
Ejemplos¶
-1
ASR:
(TranslationUnit
    (SymbolTable
        1
        {
        })
    [(IntegerUnaryMinus
        (IntegerConstant 1 (Integer 4 []))
        (Integer 4 [])
        (IntegerConstant -1 (Integer 4 []))
    )]
)