Ichar

Integer code for character.

Declaration

Sintaxe

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

Argumentos

Argument Name

Argument Description

arg

expression argument

type

table entry type

value

value of expression

Valores de retorno

The return value is the expression that the Ichar represents.

Descrição

Ichar represents integer code for character.

Tipos

Only accepts characters.

Exemplos

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 []))
        )
        ()
    )]
)

Veja Também