IntegerConstant¶
Integer literal constant, an expr
node.
Declaración¶
Sintaxis¶
IntegerConstant(int n, ttype type)
Argumentos¶
Argument Name |
Argument Description |
---|---|
|
value of integer |
|
tabel entry type |
Valores devueltos¶
The return value is the expression that the IntegerConstant represents.
Descripción¶
IntegerConstant represents integer constant which consists of a optional plus or minus sign, followed by a string of decimal digits. No other characters are allowed except, a space. If no sign is present, the constant is assumed to be non negative.
The value must be in the INTEGER*4
range (-2147483648, 2147483647).
If INTEGER*8
range is (-9223372036854775808,9223372036854775807).
Tipos¶
Only accepts integers.
Ejemplos¶
+199
29002
-2147483648
ASR:
(TranslationUnit
(SymbolTable
1
{
})
[(IntegerConstant 199 (Integer 4 []))
(IntegerConstant 29002 (Integer 4 []))
(IntegerUnaryMinus
(IntegerConstant 2147483648 (Integer 4 []))
(Integer 4 [])
(IntegerConstant -2147483648 (Integer 4 []))
)]
)