StringConstant

A string of characters enclosed in apostrophes or quotes, an expr node.

Declaración

Sintaxis

StringConstant(string s, ttype type)

Argumentos

Argument Name

Argument Description

s

value of string

type

table entry type

Valores devueltos

The return value is the expression that the StringConstant represents.

Descripción

StringConstant represents string constant. Each character string constant appearing outside a DATA statement is followed by a null character to ease communication with C routines.

Tipos

Only accepts 1 or more characters.

Ejemplos

"string"

ASR:

(TranslationUnit
    (SymbolTable
        1
        {

        })
    [(StringConstant
        "string"
        (Character 1 6 () [])
    )]
)

Ver también

IntegerConstant, RealConstant