Start working on string escapes.

This commit is contained in:
Bob Nystrom
2013-11-23 21:00:47 -08:00
parent acf9cc024f
commit e3e1f7f3d4
4 changed files with 52 additions and 16 deletions
+8
View File
@@ -0,0 +1,8 @@
// Escape characters.
io.write("\"") // expect: "
io.write("\\") // expect: \
io.write("(\n)") // expect: (
// expect: )
// TODO(bob): Non-printing escapes like \t.
// TODO(bob): Unicode escape sequences.
-2
View File
@@ -1,4 +1,2 @@
io.write("".count) // expect: 0
io.write("a string") // expect: a string
// TODO(bob): Escapes.