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