I'm just trying to create some interpreter for a script language, and one of the things I meet now is how to interpret a two-chars long char (with \
) into actual char,
For example: things you cannot type within only single char: '\n'
for newline
, and '\''
for '
and so on..
The information my interpreter gets is such string: "\\n"
because the "\"
is read before the "n"
by order char after char in a loop from the text the user types in the editor.