This commit is contained in:
2020-03-20 18:38:23 +01:00
parent 5f74de71c3
commit 32bf0c1272

View File

@@ -13,7 +13,8 @@ Youre not alone: I also wish the code were documented.
`cfg` has no comments, but lets pretend we had `#` comments.
```
# lists start with a name, then an indent, and then a value
# lists start with a name, then an indent, then a hyphen,
# and then a value
my_list
-"value"
-12
@@ -30,7 +31,8 @@ my_section
my_second_numer 23.0
```
Keys cannot contain spaces. This is all.
Keys cannot contain spaces. Indents are always two spaces. There is no space
between the hyphen and the value and an array. This is all.
It is a simple format, some might think it is too simple. It is, however,
possible, to write a simple, fast implementation in a few hundred lines of C