LogicalConstant

Logical literal constant, an expr node.

Declaración

Sintaxis

LogicalConstant(bool value, ttype type)

Argumentos

Argument Name

Argument Description

value

value of boolean

type

tabel entry type

Valores devueltos

The return value is the expression that the LogicalConstant represents.

Descripción

LogicalConstant represents logical constant, is either logical value true or false. The only logical constants are .TRUE and .FALSE. The period delimiters are necessary.

The value must be in the uses 4 bytes of storage.

Tipos

Only accepts TRUE or FAlSe values.

Ejemplos

.TRUE.
.FALSE.

ASR:

(TranslationUnit
    (SymbolTable
        1
        {

        })
    [(LogicalConstant
        .true.
        (Logical 4 [])
    )
    (LogicalConstant
        .false.
        (Logical 4 [])
    )]
)

Ver también

IntegerConstant, ComplexConstant, RealConstant