aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/doc_reform.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/doc_reform.org')
-rw-r--r--org/doc_reform.org48
1 files changed, 44 insertions, 4 deletions
diff --git a/org/doc_reform.org b/org/doc_reform.org
index acc21e9..69e23a9 100644
--- a/org/doc_reform.org
+++ b/org/doc_reform.org
@@ -75,6 +75,7 @@ import std.algorithm;
import std.parallelism;
<<mixin_doc_reform_version>>
<<mixin_pre_main>>
+string program_name = "doc-reform";
/++
name "doc_reform"
description "A SiSU inspired document parser writen in D."
@@ -219,8 +220,9 @@ static auto rgx = Rgx();
scope(success) {
debug(checkdoc) {
writefln(
- "~ run complete, ok ~ (doc_reform-%s.%s.%s, %s D:%s, %s %s)",
- ver.major, ver.minor, ver.patch,
+ "~ run complete, ok ~ (%s-%s.%s.%s, %s D:%s, %s %s)",
+ program_name,
+ _ver.major, _ver.minor, _ver.patch,
__VENDOR__, __VERSION__,
bits, os,
);
@@ -593,8 +595,8 @@ auto _opt_action = OptActions();
#+NAME: doc_reform_args
#+BEGIN_SRC d
auto _env = [
- "pwd" : environment["PWD"],
- "home" : environment["HOME"],
+ "pwd" : environment["PWD"],
+ "home" : environment["HOME"],
];
#+END_SRC
@@ -997,6 +999,8 @@ if ((_opt_action.debug_do)
- prepare document_matters, miscellany about processing and the document of
use in downstream processing
+**** verbose message
+
#+NAME: doc_reform_each_file_do_document_matters
#+BEGIN_SRC d
if ((_opt_action.debug_do)
@@ -1005,9 +1009,21 @@ if ((_opt_action.debug_do)
writeln("step4 commence → (doc_matters)");
}
struct DocumentMatters {
+#+END_SRC
+
+**** config make & meta
+
+#+NAME: doc_reform_each_file_do_document_matters
+#+BEGIN_SRC d
auto conf_make_meta() { // TODO meld with all make instructions
return _make_and_meta_struct;
}
+#+END_SRC
+
+**** env related
+
+#+NAME: doc_reform_each_file_do_document_matters
+#+BEGIN_SRC d
auto env() {
struct Env_ {
auto pwd() {
@@ -1019,6 +1035,12 @@ struct DocumentMatters {
}
return Env_();
}
+#+END_SRC
+
+**** opt
+
+#+NAME: doc_reform_each_file_do_document_matters
+#+BEGIN_SRC d
auto opt() {
struct Opt_ {
auto action() {
@@ -1031,6 +1053,12 @@ struct DocumentMatters {
}
return Opt_();
}
+#+END_SRC
+
+**** output related
+
+#+NAME: doc_reform_each_file_do_document_matters
+#+BEGIN_SRC d
auto src() {
return _manifest.src;
}
@@ -1080,8 +1108,20 @@ struct DocumentMatters {
auto output_path() {
return _manifest.output.path;
}
+#+END_SRC
+
+**** } close
+
+#+NAME: doc_reform_each_file_do_document_matters
+#+BEGIN_SRC d
}
auto doc_matters = DocumentMatters();
+#+END_SRC
+
+**** step complete message
+
+#+NAME: doc_reform_each_file_do_document_matters
+#+BEGIN_SRC d
if ((_opt_action.debug_do)
|| (_opt_action.very_verbose)
) {