aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2017-01-20 11:06:54 -0500
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commit88075ee569b5301e6fdf9dc7248aa1406bc38636 (patch)
tree57b69ce4a0194a4e2f2034553a2e9a1569638a79 /src/sdp
parentsdp, remove some intermediate steps (diff)
0.12.0 template related; doc abstraction
Diffstat (limited to 'src/sdp')
-rw-r--r--src/sdp/ao_abstract_doc_source.d18
-rw-r--r--src/sdp/ao_conf_make_meta_sdlang.d1
2 files changed, 12 insertions, 7 deletions
diff --git a/src/sdp/ao_abstract_doc_source.d b/src/sdp/ao_abstract_doc_source.d
index 9bb5def..8b1d4cf 100644
--- a/src/sdp/ao_abstract_doc_source.d
+++ b/src/sdp/ao_abstract_doc_source.d
@@ -5,7 +5,7 @@
+/
template SiSUdocAbstraction() {
private:
- struct Abstraction {
+ struct SiSUdocAbstraction {
/+ ↓ abstraction imports +/
import
ao_defaults, // sdp/ao_defaults.d
@@ -217,12 +217,18 @@ template SiSUdocAbstraction() {
ObjGenericComposite comp_obj_heading, comp_obj_location, comp_obj_block, comp_obj_code, comp_obj_poem_ocn, comp_obj_comment;
auto node_construct = NodeStructureMetadata();
/+ ↓ abstract marked up document +/
- auto abstract_doc_source(
- char[][] markup_sourcefile_content,
- string[string][string] dochead_make_aa,
- string[string][string] dochead_meta_aa,
- bool[string] opt_action_bool,
+ auto SiSUdocAbstraction(Src,Make,Meta,Opt)(
+ Src markup_sourcefile_content,
+ Make dochead_make_aa,
+ Meta dochead_meta_aa,
+ Opt opt_action_bool,
) {
+ debug(asserts){
+ static assert(is(typeof(markup_sourcefile_content) == char[][]));
+ static assert(is(typeof(dochead_make_aa) == string[string][string]));
+ static assert(is(typeof(dochead_meta_aa) == string[string][string]));
+ static assert(is(typeof(opt_action_bool) == bool[string]));
+ }
/+ ↓ abstraction init +/
scope(success) {
}
diff --git a/src/sdp/ao_conf_make_meta_sdlang.d b/src/sdp/ao_conf_make_meta_sdlang.d
index d917a34..5ced761 100644
--- a/src/sdp/ao_conf_make_meta_sdlang.d
+++ b/src/sdp/ao_conf_make_meta_sdlang.d
@@ -257,6 +257,5 @@ template SiSUheaderExtractSDLang() {
auto header_aa_tuple = headerSDLangToAAmake(header_sdlang_tag, conf_doc_make_aa);
return header_aa_tuple;
}
-
}
}