StringConcat

String concatenation, an expr node.

Declaración

Sintaxis

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 devueltos

The return value is the expression that the StringConcat represents.

Descripción

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

Tipos

Only accepts strings.

Ejemplos

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

Ver también