1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2026-04-24 06:23:34 +00:00

Fixed bug in string escape parsing & added escape sequences

This commit is contained in:
Curtis F Kaylor
2018-07-21 16:08:06 -04:00
parent ff70ba739a
commit 0082eb3096
2 changed files with 23 additions and 3 deletions
+14 -1
View File
@@ -173,7 +173,20 @@ A string is a consecutive series of characters terminated by an ASCII null
character (a byte with the value 0).
A string literal is written as up to 255 printable characters. prefixed and
suffixed with " characters.
suffixed with " characters.
The " character and a subset of ASCII control characters can be specified
in a string literal by using escape sequences prefixed with the \ symbol:
\b $08 Backspace
\e $08 Escape
\f $0C Form Feed
\n $0A Line Feed
\r $0D Carriage Return
\t $09 Tab
\v $0B Vertical Tab
\" $22 Double Quotation Mark
\\ $5C Backslash
SYMBOLS