IntegerBOZ

Integer typeless constants, Binary, Octal, and Hexadecimal.

Declaration

Sintaxe

IntegerBOZ(int v, integerboz intboz_type, ttype? type)

Argumentos

Argument Name

Argument Description

v

integer value

intboz_type

integerboz = Binary

type

table entry type

Valores de retorno

The return value is the expression that the IntegerBOZ represents.

Descrição

IntegerBOZ represents integer Binary Octal H/Zexadecimal constants.

These are typeless numeric constants as their expressions assume data types based on how they are used.

These constants are enclosed a string of appropriate digits in apostrophes and prefix it with the letter B, O, X, or Z.

Tipos

Only accepts integers and real.

Exemplos

B'0001000'
O'777'
Z'FFF99A'

ASR:

(TranslationUnit
    (SymbolTable
        1
        {

        })
    [(IntegerBOZ
        8
        Binary
        ()
    )
    (IntegerBOZ
        511
        Octal
        ()
    )
    (IntegerBOZ
        16775578
        Hex
        ()
    )]
)

Veja Também