aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/ao_conf_make_meta.d
blob: f78d7c4db27dfa2fdbef4dbd9e0535f2e74a7693 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/+
  extract native/orig header return associative array
+/
template SiSUheaderExtractHub() {
  private import
    std.regex;
  private import
    ao_rgx;
  struct HeaderDocMetadataAndMake {
    mixin SiSUheaderExtractNative;
    mixin SiSUheaderExtractSDLang;
    auto rgx = Rgx();
    private auto headerContentAA(char[] header_src, string[string][string] conf_doc_make_aa) {
      auto head_native = HeaderDocMetadataAndMakeNativeToAA();
      auto head_sdlang = HeaderExtractSDL();
      writeln(__LINE__);
      auto header_make_and_meta_tuple = (match(header_src, rgx.native_header_meta_title))
      ? (head_native.headerNativeToAA(header_src))
      : (head_sdlang.headerSDLangToAA(header_src, conf_doc_make_aa));
      writeln(__LINE__);
      static assert(!isTypeTuple!(header_make_and_meta_tuple));
      return header_make_and_meta_tuple;
    }
  }
}