ERights Home elang / kernel 
Back to: Char Literal Expression On to: Noun Expression

String Literal Expression


Has the conventional meaning -- evaluates to a String containing the expressed characters in order. A String is an immutable list of Unicode characters.

Lexical Regex:
"((\\\n) | constChar | non-backslash-or-double-quote)*"

Escaped newlines are not part of the string's value.

XML DTD:
<!ELEMENT String #PCData>

Where, after processing the Minimal-XML escapes and whitespace rules, the #PCDATA must conform to the above regex, and should be written as it appears in the source text.

Java:

The E syntax can be used directly in Java with the same meaning with the following exceptions:

in E translate to Java
'\$' or '$'
'$'
'\@' or '@'
'@'

escaped newlines

may be discarded (unless Java accepts these. ??)

Example:
"foo"
in Kernel-E:
same
in XML:
<String>foo</String>
in Java
"foo"

x
 
Unless stated otherwise, all text on this page which is either unattributed or by Mark S. Miller is hereby placed in the public domain.
ERights Home elang / kernel 
Back to: Char Literal Expression On to: Noun Expression
Download    FAQ    API    Mail Archive    Donate

report bug (including invalid html)

Golden Key Campaign Blue Ribbon Campaign