tomhrr / dale

Lisp-flavoured C
BSD 3-Clause "New" or "Revised" License
1.02k stars 48 forks source link

Can't produce a backslace in literal strings #202

Closed ChengCat closed 5 years ago

ChengCat commented 5 years ago
(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
tomhrr commented 5 years ago

Thanks, this has been fixed.