IntegerBOZ

Integer typeless constants, Binary, Octal, and Hexadecimal.

声明

语法

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

参数

Argument Name

Argument Description

v

integer value

intboz_type

integerboz = Binary

type

table entry type

返回值

The return value is the expression that the IntegerBOZ represents.

描述

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.

类型

Only accepts integers and real.

示例

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

ASR:

(TranslationUnit
    (SymbolTable
        1
        {

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

也可以看看