From 98314b3de50e356568524708951ca507c80b3af2 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 2 Nov 2016 10:27:19 -0400 Subject: cleaning (one hash key renamed) --- org/ao_read_source_files.org | 72 -------------------------------------------- 1 file changed, 72 deletions(-) (limited to 'org/ao_read_source_files.org') diff --git a/org/ao_read_source_files.org b/org/ao_read_source_files.org index 66b91a8..77c3266 100644 --- a/org/ao_read_source_files.org +++ b/org/ao_read_source_files.org @@ -20,10 +20,6 @@ #+name: ao_config_file_in #+BEGIN_SRC d final private string readInConfigFile(string conf_sdl) { - // enforce( - // exists(fn_src)!=0, - // "file not found" - // ); string[] possible_config_path_locations = [ environment["PWD"] ~ "/.sisu", environment["PWD"] ~ "/_sisu", @@ -37,7 +33,6 @@ final private string readInConfigFile(string conf_sdl) { pth, conf_sdl, ); - // writeln(conf_file); try { if (exists(conf_file)) { debug(configfile) { @@ -48,25 +43,8 @@ final private string readInConfigFile(string conf_sdl) { } } catch (ErrnoException ex) { - //// Handle errors - // switch(ex.errno) { - // case EPERM: - // case EACCES: - // // Permission denied - // break; - // case ENOENT: - // // File does not exist - // break; - // default: - // // Handle other errors - // break; - // } } - // catch (UTFException ex) { - // // Handle validation errors - // } catch (FileException ex) { - // Handle errors } } return config_file_str; @@ -84,20 +62,12 @@ private auto configSDLangRootTag(string configuration, string conf_sdl_filename) } catch(ParseException e) { stderr.writeln("SDLang problem with content for ", conf_sdl_filename); - // Error messages of the form: - // myFile.sdl(5:28): Error: Invalid integer suffix. stderr.writeln(e.msg); } debug(sdlang) { - // Value is a std.variant.Algebraic Value output_dir_structure_by = sdl_root_conf.tags["output_dir_structure_by"][0].values[0]; assert(output_dir_structure_by.type == typeid(string)); writeln(output_dir_structure_by); - // Tag person = sdl_root_conf.namespaces["myNamespace"].tags["person"][0]; - // writeln("Name: ", person.attributes["name"][0].value); - // - // int age = person.tags["age"][0].values[0].get!int(); - // writeln("Age: ", age); writeln("conf SDL:"); writeln(sdl_root_conf.toSDLDocument()); } @@ -135,19 +105,6 @@ final private string readInMarkupSource(in string fn_src) { } } catch (ErrnoException ex) { - //// Handle errors - // switch(ex.errno) { - // case EPERM: - // case EACCES: - // // Permission denied - // break; - // case ENOENT: - // // File does not exist - // break; - // default: - // // Handle other errors - // break; - // } } catch (UTFException ex) { // Handle validation errors @@ -162,26 +119,8 @@ final private string readInMarkupSource(in string fn_src) { *** notes source_txt_str = readText(fn_src); // ok -// source_txt_str = cast(string) read(fn_src); // ok -// immutable string source_txt_str = cast(string) read(fn_src); -// auto utf8Data = readText(fn_src); -// auto utf16Data = readText!(wstring)(fn_src); -// auto utf32Data = readText!(dstring)(fn_src); catch (ErrnoException ex) { -//// Handle errors -// switch(ex.errno) { -// case EPERM: -// case EACCES: -// // Permission denied -// break; -// case ENOENT: -// // File does not exist -// break; -// default: -// // Handle other errors -// break; -// } } ** [#A] document header & content, array.length == 2 :array: @@ -315,14 +254,12 @@ if (type1["curly_code"] == 1) { ) { type1["header_make"] = 1; type1["header_meta"] = 0; - // cont_dynamic_array ~= "% " ~ line; } else if ( (type1["header_meta"] == 1) && matchFirst(line, rgx.native_header_sub) ) { type1["header_meta"] = 1; type1["header_make"] = 0; - // cont_dynamic_array ~= "% " ~ line; } else if (auto m = match(line, rgx.insert_src_fn_ssi_or_sst)) { type1["header_make"] = 0; type1["header_meta"] = 0; @@ -407,8 +344,6 @@ if (type["curly_code"] == 1) { if (auto ma = match(line, rgx.src_fn_text)) { /+ .sst when inserted, not used: headers and heading level ^:?A~ so remove +/ writeln(__LINE__); writeln(ma); - // auto t = - // raw.markupSourceHeaderContentRawLineTupleArray(fn_src, rgx.src_pth); } auto markup_sourcefile_insert_content = raw.getInsertMarkupSourceContentRawLineArray(fn_src_insert, rgx.src_fn_find_inserts); @@ -500,7 +435,6 @@ template SiSUmarkupRaw() { private struct MarkupRawUnit { private import std.file; - // enum State { off, on } <> <> <> @@ -553,14 +487,9 @@ WORK AREA template SiSUconfigIn() { private import std.exception, - // std.regex, std.stdio, std.utf, std.conv : to; - // private import - // ao_rgx; // ao_defaults.d - // mixin RgxInit; - // auto rgx = Rgx(); private struct ConfigIn { private import std.file; @@ -614,7 +543,6 @@ from 0~ read in as content # #+NAME: sdp_each_file_do # #+BEGIN_SRC d /+ ↓ read file +/ -// auto conf = MarkupRaw(); auto conf = ConfigIn(); auto configfile_content = conf.sourceConfig(fn_src); -- cgit v1.2.3