Ichar

Integer code for character.

Declaración

Sintaxis

Ichar(expr arg, ttype type, expr? value)

Argumentos

Argument Name

Argument Description

arg

expression argument

type

table entry type

value

value of expression

Valores devueltos

The return value is the expression that the Ichar represents.

Descripción

Ichar represents integer code for character.

Tipos

Only accepts characters.

Ejemplos

integer :: i
i = ichar(' ')

ASR:

(TranslationUnit
    (SymbolTable
        1
        {
            i:
                (Variable
                    1
                    i
                    Local
                    ()
                    ()
                    Default
                    (Integer 4 [])
                    Source
                    Public
                    Required
                    .false.
                )

        })
    [(=
        (Var 1 i)
        (Ichar
            (StringConstant
                " "
                (Character 1 1 () [])
            )
            (Integer 4 [])
            (IntegerConstant 32 (Integer 4 []))
        )
        ()
    )]
)

Ver también