Compiler/AST interpreter: Difference between revisions
Content added Content deleted
m (More clarifications) |
m (Fix embedded // in string handling) |
||
Line 347: | Line 347: | ||
while ((*p++ = *q++) != '\0') { |
while ((*p++ = *q++) != '\0') { |
||
if (q[-1] == '\\ |
if (q[-1] == '\\') { |
||
if (q[0] == 'n') { |
|||
p[-1] = '\n'; |
|||
++q; |
|||
} else if (q[0] == '\\') { |
|||
++q; |
|||
} |
|||
} |
} |
||
} |
} |