started ch05

This commit is contained in:
2026-02-22 17:52:08 +02:00
parent 2d9b2318a9
commit 53d5f2878c
3 changed files with 71 additions and 0 deletions

16
exercises/ch05/ex5_3.lua Normal file
View File

@@ -0,0 +1,16 @@
local escape_sequences = {
["\a"] = "bell",
["\b"] = "back space",
["\f"] = "form feed",
["\n"] = "newline",
["\r"] = "carriage return",
["\t"] = "horizontal tab",
["\v"] = "vertical tab",
["\\"] = "backslash",
["\""] = "double quote",
["\'"] = "single quote"
}
for k, v in pairs(escape_sequences) do
print(("k='%s', v='%s'"):format(k, v))
end