H (Hybrid) Language - v0.03, by Dr. Herong Yang
Escape Sequences in "string" Literals
This section describes Escape Sequences in 'string' literals
Escape sequences must be supported to allow us to enter the double-quote (") itself, in the string.
So escape sequences is supported with the leading character of "\" with 4 simple rules:
Examples of "string" literals with escape sequences:
"Computer says: \"Invalid character: \\\""; # The above "string" literals represents: # Computer says: "Invalid character: \"; "How many slashes in the string: \\\\\\\\\\?"; # The anwser is 5
Table of Contents
►Escape Sequences in "string" Literals
Escape Sequences for Non-Printable ASCII Characters
Escape Sequences for Unicode Characters
String Literals with Line Breaks
String Literals Continuing on Next Lines
Expression Interpolation in String Literals
String Literals with No Escape Sequences
Constructor Function: string()
string.get() - Retrieve Character from String
x[i] - Array Element Format for string.get()
string.set() - Update Character to String
x[i] - Array Element Format for string.set()
"string" "subtraction" Operation
"string" "multiplication" Operation
Inheritance - Object Attachments