IntegerUnaryMinus¶
Uniry minus operator as the second operand of binary arithmetic operators, a
expr
node.
Declaration¶
Sintaxe¶
IntegerUnaryMinus(expr arg, ttype type, expr? value)
Argumentos¶
Argument Name |
Argument Description |
---|---|
|
expression arguments |
|
table entry type |
|
expression value |
Valores de retorno¶
The return value is the expression that the IntegerUnaryMinus represents.
Descrição¶
IntegerUnaryMinus represents integer unary minus operand of binary arithmetic operators, to be used without parantheses.
Example : a = b * -c
Tipos¶
Only accepts integers.
Exemplos¶
-1
ASR:
(TranslationUnit
(SymbolTable
1
{
})
[(IntegerUnaryMinus
(IntegerConstant 1 (Integer 4 []))
(Integer 4 [])
(IntegerConstant -1 (Integer 4 []))
)]
)