diff options
Diffstat (limited to 'org/ao_output_debugs.org')
-rw-r--r-- | org/ao_output_debugs.org | 60 |
1 files changed, 32 insertions, 28 deletions
diff --git a/org/ao_output_debugs.org b/org/ao_output_debugs.org index c5f4482..72ca80e 100644 --- a/org/ao_output_debugs.org +++ b/org/ao_output_debugs.org @@ -24,15 +24,15 @@ debug(parent) { __LINE__, ); foreach (obj; contents) { - if (obj["use"] == "content") { - if (obj["is"] == "heading") { + if (obj.use == "content") { + if (obj.is_a == "heading") { writefln( "%s%s node: %s heading: %s %s", scr_txt_marker["cyan"], - obj["obj_cite_number"], - obj["node"], - obj["lev_markup_number"], - obj["obj"], + obj.obj_cite_number, + obj.node, + obj.lev_markup_number, + obj.object, ); } else { } @@ -51,12 +51,12 @@ debug(dumpdoc) { __LINE__, ); foreach (obj; contents) { - if (obj["use"] == "content") { + if (obj.use == "content") { writefln( "[%s][%s]\n%s", - obj["obj_cite_number"], - obj["is"], - obj["obj"] + obj.obj_cite_number, + obj.is_a, + obj.object ); } } @@ -73,14 +73,14 @@ debug(objects) { __LINE__, ); foreach (obj; contents) { - if (obj["use"] == "content") { + if (obj.use == "content") { writefln( "%s* [%s][%s] %s%s", scr_txt_color["green"], - obj["obj_cite_number"], - obj["is"], + obj.obj_cite_number, + obj.is_a, scr_txt_color["off"], - obj["obj"] + obj.object ); } } @@ -269,9 +269,9 @@ debug(summary) { #+BEGIN_SRC d debug(checkdoc) { foreach (obj; contents) { - if (obj["use"] == "content") { - if (!empty(obj["obj_cite_number"])) { - check["last_obj_cite_number"] = obj["obj_cite_number"]; + if (obj.use == "content") { + if (!empty(obj.obj_cite_number)) { + check["last_obj_cite_number"] = obj.obj_cite_number; } } } @@ -288,14 +288,14 @@ debug(headings) { __LINE__, ); foreach (obj; contents) { - if (obj["is"] == "heading") { + if (obj.is_a == "heading") { writefln( "%s%s~ [%s] %s", scr_txt_marker["yellow"], - obj["lev"], - obj["obj_cite_number"], + obj.heading_attrib.lev, + obj.obj_cite_number, // "[", obj["is"], "] ", - obj["obj"] + obj.object ); } } @@ -456,14 +456,18 @@ debug(checkdoc) { +/ template SiSUoutputDebugs() { struct SDPoutputDebugs { - auto abstract_doc_source_debugs( - string[string][] contents, - JSONValue[string] docmake, - JSONValue[string] dochead, + auto tst_debugs(S)(auto ref const S s) { + mixin RgxInit; + mixin ScreenTxtColors; + auto rgx = Rgx(); + } + auto abstract_doc_source_debugs(S)(auto ref const S contents, + JSONValue[string] docmake, + JSONValue[string] dochead, string[][string][string] bookindex_unordered_hashes, - JSONValue[] biblio, - string fn_src, - bool[string] opt_action_bool + JSONValue[] biblio, + string fn_src, + bool[string] opt_action_bool ) { mixin RgxInit; mixin ScreenTxtColors; |