Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
-- Two dashes start a one-line comment. | |
--[[ | |
Adding two ['s and ]'s makes it a | |
multi-line comment. | |
--]] | |
---------------------------------------------------- | |
-- 1. Variables and flow control. | |
---------------------------------------------------- |
--[[ json.lua | |
A compact pure-Lua JSON library. | |
The main functions are: json.stringify, json.parse. | |
## json.stringify: | |
This expects the following to be true of any tables being encoded: | |
* They only have string or number keys. Number keys must be represented as | |
strings in json; this is part of the json spec. |
{ | |
"Old Testament": { | |
"Genesis": { | |
"1": { | |
"1": "¹ When God began to create the heavens and the earth, ", | |
"2": "² the earth was complete chaos, and darkness covered the face of the deep, while a wind from God swept over the face of the waters. ", | |
"3": "³ Then God said, “Let there be light,” and there was light. ", | |
"4": "⁴ And God saw that the light was good, and God separated the light from the darkness. ", | |
"5": "⁵ God called the light Day, and the darkness he called Night. And there was evening and there was morning, the first day. \n", | |
"6": "⁶ And God said, “Let there be a dome in the midst of the waters, and let it separate the waters from the waters.” ", |