aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/sdp.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/sdp.org')
-rw-r--r--org/sdp.org19
1 files changed, 9 insertions, 10 deletions
diff --git a/org/sdp.org b/org/sdp.org
index da8dc43..70b68f5 100644
--- a/org/sdp.org
+++ b/org/sdp.org
@@ -48,7 +48,7 @@ import
lib.sdp.ao_utils; // sdp/ao_utils.d ao_utils.org
// std.conv;
import std.conv : to;
-#+end_src
+#+END_SRC
** argv [+3]
*** argv mixins
#+name: sdp_argv
@@ -101,7 +101,7 @@ scope(failure) {
}
// writeln("1");
}
-#+end_src
+#+END_SRC
*** argv loop
#+name: sdp_argv
#+BEGIN_SRC d :exports none
@@ -114,7 +114,7 @@ foreach(cmdlnins; argv) {
file_count++;
}
}
-#+end_src
+#+END_SRC
*** each file [+2]
**** filename provided [+1]
***** scope
@@ -146,7 +146,7 @@ enforce(
match(fn_src, rgx.src_pth),
"not a sisu markup filename"
);
-#+end_src
+#+END_SRC
***** send for processing
#+name: sdp_each_file_do
#+BEGIN_SRC d :exports none
@@ -190,7 +190,7 @@ auto make_json = t[2];
auto bookindex_unordered_hashes = t[3];
auto biblio = t[4];
// destroy(t);
-#+end_src
+#+END_SRC
***** debug document parts (checkdoc)
#+name: sdp_each_file_do
#+BEGIN_SRC d :exports none
@@ -208,7 +208,7 @@ debug(checkdoc) {
}
// compose abstract document markup state
// append book index
-#+end_src
+#+END_SRC
***** on exit
#+name: sdp_each_file_do
#+BEGIN_SRC d :exports none
@@ -222,7 +222,7 @@ scope(exit) {
destroy(fn_src);
destroy(biblio);
}
-#+end_src
+#+END_SRC
**** no filename provided
#+name: sdp_no_filename_provided
#+BEGIN_SRC d :exports none
@@ -230,12 +230,11 @@ scope(exit) {
writeln("no recognized filename");
break;
// terminate, stop
-#+end_src
+#+END_SRC
* tangles :tangle:
** code structure :sdp.d:
#+name: tangle_sdp
-#+BEGIN_SRC d :tangle ../lib/sdp.d :exports none :noweb yes
-#!/usr/bin/env rdmd
+#+begin_src d :tangle ../lib/sdp.d :shebang #!/usr/bin/env rdmd :exports none :noweb yes
/*
sdp
sdp.d