From f459b2f57b111d2a7d6a50ba04bf680310d7c4d9 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 11 Aug 2021 06:09:23 -0400 Subject: configuration reorganized into config files - spine_build_scaffold broken up into many files --- org/spine.org | 64 ++++++----------------------------------------------------- 1 file changed, 6 insertions(+), 58 deletions(-) (limited to 'org/spine.org') diff --git a/org/spine.org b/org/spine.org index c27a3be..6621fac 100644 --- a/org/spine.org +++ b/org/spine.org @@ -19,59 +19,7 @@ [[./spine_info.org][spine_info.org]] [[./][org/]] [[./spine_build_scaffold.org][make/build]] VERSION -* 0. version.txt configuration.txt (set version & configuration) -** 0. set program version tangle SET :version: - -#+HEADER: :tangle "../views/version.txt" -#+BEGIN_SRC txt -<> -<> -<> -#+END_SRC - -** 0. set configuration tangle SET :configuration: - -see: cfte_configuation.org - -** program version struct - -#+NAME: spine_version_struct -#+BEGIN_SRC d -/+ obt - org-mode generated file +/ -struct Version { - int major; - int minor; - int patch; -} -#+END_SRC - -** set program version VERSION :version:set:project: - -#+NAME: spine_version_current_set -#+BEGIN_SRC d -enum _ver = Version(0, 11, 3); -#+END_SRC - -** compilation restrictions (supported compilers) -- set compilation restrictions - -https://dlang.org/spec/version.html#predefined-versions - -#+NAME: spine_compiler_restrictions -#+BEGIN_SRC d -version (Posix) { - version (DigitalMars) { - } else version (LDC) { - } else version (GNU) { - } else { - static assert (0, "Unsupported D compiler"); - } -} else { - static assert (0, "Unsupported D compiler"); -} -#+END_SRC - -* 1. spine (sisu document parser) :spine: +* spine (sisu document parser) :spine: ** notes - deal with imports - get options @@ -82,7 +30,7 @@ version (Posix) { - process file - output -** 0. spine src/spine :template: +** spine src/spine :template: - process files (act according to requirements of each type) - by sourcefilename @@ -236,7 +184,7 @@ string program_name = "spine"; +/ #+END_SRC -** 1. pre-loop init :init: +** pre-loop init :init: *** init **** imports :import: ***** spine :spine: @@ -1185,7 +1133,7 @@ foreach(arg; args[1..$]) { } #+END_SRC -** _2. processing: (loop each file)_ [+2] :loop:files: +** _processing: (loop each file)_ [+2] :loop:files: *** scope (loop) :scope: #+NAME: spine_each_file_do_scope @@ -1361,7 +1309,7 @@ scope(exit) { } #+END_SRC -** +2c. no valid filename provided+ +** +no valid filename provided+ #+NAME: spine_no_filename_provided #+BEGIN_SRC d /+ no recognized filename provided +/ @@ -1369,7 +1317,7 @@ writeln("no recognized filename"); break; // terminate, stop #+END_SRC -* 2. pre-processing +* pre-processing ** Output _document abstraction functions_ :module:spine:abstraction: *** 0 module template - abstraction template -- cgit v1.2.3