tomhrr / dale

Lisp-flavoured C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't produce a backslace in literal strings

ChengCat opened this issue · comments

(import cstdio)
(def main (fn extern-c int (void)
  (printf "\\")
  0))

With the above code, I expect it print a single backslash \, but a compile error is shown instead:

error: unterminated string literal

Thanks, this has been fixed.