StringConstant¶
A string of characters enclosed in apostrophes or quotes, an expr
node.
Declaration¶
Sintaxe¶
StringConstant(string s, ttype type)
Argumentos¶
Argument Name |
Argument Description |
---|---|
|
value of string |
|
table entry type |
Valores de retorno¶
The return value is the expression that the StringConstant represents.
Descrição¶
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.
Exemplos¶
"string"
ASR:
(TranslationUnit
(SymbolTable
1
{
})
[(StringConstant
"string"
(Character 1 6 () [])
)]
)