This commit is contained in:
2020-03-19 01:46:59 +01:00
parent dd17316ba3
commit fe13be2fd0
4 changed files with 306 additions and 27 deletions

View File

@@ -4,11 +4,7 @@ is a spartan fast configuration language.
It has numbers, strings, lists, and sections.
The reference implementation is WIP. I just got to finishing the data type and
pretty printer today, a parser will be provided soon. I didnt quite create a
correct implementation today. There will most certainly also be memory leaks.
I promised a friend I would share this “later today”, though, and Im not one
to break promises just because my code is crap. You have been warned.
The reference implementation is WIP. There will most certainly be memory leaks.
Youre not alone: I also wish the code were documented.
@@ -19,8 +15,8 @@ Youre not alone: I also wish the code were documented.
```
# lists start with a name, then an indent, and then a value
my_list
- "value"
- 12
-"value"
-12
# strings are quoted
my_string "this is a string"
@@ -41,7 +37,7 @@ possible, to write a simple, fast implementation in a few hundred lines of C
(QED), and that might be worth a bit of reduction.
See the [`examples/`](examples/) directory for an example of how to use the
pretty printer.
pretty printer and parser APIs.
<hr/>