[examples] finish first draft commentary in parse_check.c

This commit is contained in:
Allen Webster
2021-09-10 15:26:21 -07:00
parent 6dd7acb1a2
commit 39b30d9276
3 changed files with 43 additions and 6 deletions
+20 -2
View File
@@ -4,9 +4,9 @@ string helpers
immutable tree model
nil
Examples:
Example Programs:
[ ] Metadesk hello world
[ ] Metadesk parse checker
[x] Metadesk parse checker
[ ] Example of helpers: string helpers, linked lists, map type
printing errors, cmd line, file iter
[x] Datadesk-like setup
@@ -17,3 +17,21 @@ Examples:
[ ] Example memory clearing in long-running program
[ ] Example multi-threaded parsing
Example Metadesk Files:
[ ] Hello world
Allen's Final Tweak Notes (September 10th 2021):
*** MD_EachNodeRef seems bad to me. ***
Using it is equivalent to:
for (MD_EachNode(it, first_child)
{
MD_Node *node = MD_ResolveFromReference(it); // this line is saved by the macro
}
Explaning this concept seems more difficult with the extra macro. I think it'd be
clearer and basically just as maintenance efficient to live without this.