Special characters: Difference between revisions

Special chars in BLC
m (syntax highlighting fixup automation)
imported>Tromp
(Special chars in BLC)
(2 intermediate revisions by 2 users not shown)
Line 494:
 
And unlike the earlier versions, when Befunge-98 encounters an unsupported instructions (typically an unassigned fingerprint character), the program counter is reflected instead of the character being ignored.
 
=={{header|Binary Lambda Calculus}}==
 
BLC has no special characters and no need to escape any. That's essential for a language in order to be universal in the sense of https://gist.github.com/tromp/86b3184f852f65bfb814e3ab0987d861#universality
 
=={{header|Bracmat}}==
Line 2,661 ⟶ 2,665:
* [[ ]] bash specific feature
* (( )) arithmetic expansion enclosures
 
=={{header|V (Vlang)}}==
Note: Further elaboration can be found in the documentation.
<syntaxhighlight lang="Vlang">
// escape codes
windows_newline := '\r\n' // escape special characters like in C
assert windows_newline.len == 2
 
// arbitrary bytes can be directly specified using `\x##`
// a hex digit aardvark_str := '\x61ardvark' assert aardvark_str == 'aardvark'
assert '\xc0'[0] == u8(0xc0)
 
// or using octal escape `\###` notation where `#` is an octal digit
aardvark_str2 := '\141ardvark'
assert aardvark_str2 == 'aardvark'
 
// Unicode can be specified directly as `\u####` where # is a hex digit
// and will be converted internally to its UTF-8 representation
star_str := '\u2605' // ★
assert star_str == '★'
assert star_str == '\xe2\x98\x85' // UTF-8 can be specified this way too.
</syntaxhighlight>
 
=={{header|Wren}}==
Line 2,666 ⟶ 2,692:
 
Apart from these the only character which can be regarded as ''special'' is the underscore. Apart from letters and digits this is the only other character permitted in an identifier. However, an identifier which starts with an underscore is ''always'' an instance field and an identifier which starts with two (or more) underscores is ''always'' a static field of a class. They cannot be used for any other purpose.
 
=={{header|XPL0}}==
The operators that XPL0 supports are listed in the [[Operator_precedence#XPL0]] task, and the escape characters used are listed in the [[Literals/String#XPL0]] task.
 
Other than these, the only character that can be regarded as ''special'' is the underscore. Apart from letters and digits, this is the only other character permitted in an identifier. An identifier must start with a capital letter or an underscore. This avoids the problem of certain words being reserved by the language and not available as identifier names. For example, ''For'' could be used as a variable name, and it would not conflict with the ''for'' loop command word.
 
=={{header|XSLT}}==
Anonymous user