StringConstant¶
A string of characters enclosed in apostrophes or quotes, an expr
node.
Declaration¶
Syntax¶
StringConstant(string s, ttype type)
Arguments¶
Argument Name |
Argument Description |
---|---|
|
value of string |
|
table entry type |
Return values¶
The return value is the expression that the StringConstant represents.
Description¶
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.
Types¶
Only accepts 1 or more characters.
Examples¶
"string"
ASR:
(TranslationUnit
(SymbolTable
1
{
})
[(StringConstant
"string"
(Character 1 6 () [])
)]
)