StringConcat

String concatenation, an expr node.

Declaration

Sintaxe

StringConcat(expr left, expr right, ttype type, expr? value)

Argumentos

Argument Name

Argument Description

left

left string

right

right string

type

table entry type

value

expression value

Valores de retorno

The return value is the expression that the StringConcat represents.

Descrição

StringConcat represents string concatenation. Two strings can be combined one after the other using this node.

Tipos

Only accepts strings.

Exemplos

"left"//"right"

ASR:

(TranslationUnit
    (SymbolTable
        1
        {

        })
    [(StringConcat
        (StringConstant
            "left"
            (Character 1 4 () [])
        )
        (StringConstant
            "right"
            (Character 1 5 () [])
        )
        (Character 1 9 () [])
        (StringConstant
            "leftright"
            (Character 1 9 () [])
        )
    )]
)

Veja Também