DEADSOFTWARE

Cons log implementation changed, documentation were added for ConsLog and Console.
authorIvan Denisov <d.ivan.krsk@gmail.com>
Fri, 20 May 2016 05:35:30 +0000 (12:35 +0700)
committerIvan Denisov <d.ivan.krsk@gmail.com>
Fri, 20 May 2016 05:35:30 +0000 (12:35 +0700)
BlackBox/Cons/Docu/Log.odc [new file with mode: 0644]
BlackBox/Cons/Mod/Log.odc
BlackBox/System/Docu/Console.odc [new file with mode: 0644]
BlackBox/_Linux_/Lin/Mod/Log.odc [deleted file]
examples/console/README [deleted file]
examples/console/System/Mod/Init.txt [deleted file]
examples/console/runc [deleted file]

diff --git a/BlackBox/Cons/Docu/Log.odc b/BlackBox/Cons/Docu/Log.odc
new file mode 100644 (file)
index 0000000..ca37328
Binary files /dev/null and b/BlackBox/Cons/Docu/Log.odc differ
index 722604d493f240e9966f9bcffa952b27f26e0fb2..ded945ad04ca5d599386a0dfd9f44be9aeb34e34 100644 (file)
Binary files a/BlackBox/Cons/Mod/Log.odc and b/BlackBox/Cons/Mod/Log.odc differ
diff --git a/BlackBox/System/Docu/Console.odc b/BlackBox/System/Docu/Console.odc
new file mode 100644 (file)
index 0000000..054e9e4
Binary files /dev/null and b/BlackBox/System/Docu/Console.odc differ
diff --git a/BlackBox/_Linux_/Lin/Mod/Log.odc b/BlackBox/_Linux_/Lin/Mod/Log.odc
deleted file mode 100644 (file)
index 4bfeb14..0000000
Binary files a/BlackBox/_Linux_/Lin/Mod/Log.odc and /dev/null differ
diff --git a/examples/console/README b/examples/console/README
deleted file mode 100755 (executable)
index 852c2b5..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-Example to demonstrate ConsCompiler and ConsLog.
-
-ConsCompiler allows to compile sources stored in "txt" format.
-ConsLog provides realisation for the Log abstract interface.
-
-Author of the example: Ivan Denisov, denisov@molpit.org
-
-Installation and demonstration
-
-1. Prepare Interp version of BlackBox in "Linux_Interp" folder:
-       ./switch-target `uname -s` Interp
-       ./build
-       ./export ../Linux_Interp
-
-2. Compile this example:
-       cd ../examples/console
-       echo "ConsCompiler.Compile('System/Mod', 'Init.txt')" | ./runc
-
-3. For demonstration run:
-       ./runc 123 123
-
-Output will contain: "Summ:  246.0".
diff --git a/examples/console/System/Mod/Init.txt b/examples/console/System/Mod/Init.txt
deleted file mode 100644 (file)
index 190d9df..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-MODULE Init;\r
-\r
-       IMPORT\r
-               Kernel,\r
-               HostConsole (* Console.SetHook *) ,\r
-\r
-               HostFonts (* Fonts.SetHook; required for Texts *),\r
-               HostWindows (* Windows.SetHook *),\r
-               HostDates (* Dates.SetHook *),\r
-               HostDialog (* Dialog.SetShowHook *),\r
-               StdInterpreter (* Dialog.SetCallHook *) ,\r
-               StdDialog (* Views.SetViewHook *),\r
-\r
-               Log, ConsLog, (* Log.Hook *)\r
-               Strings,\r
-               Converters (* .odc *),\r
-               Dialog;\r
-\r
-       PROCEDURE Init;\r
-       VAR\r
-               c1, c2, res: INTEGER;  a, b: REAL;\r
-       BEGIN\r
-               IF Kernel.bootInfo.argc = 3 THEN\r
-                       Strings.StringToReal(Kernel.bootInfo.argv[1]$, a, c1);\r
-                       Strings.StringToReal(Kernel.bootInfo.argv[2]$, b, c2);\r
-                       IF (c1 = 0) & (c2 = 0) THEN\r
-                               Log.String("Summ: "); Log.Real(a + b); Log.Ln\r
-                       ELSE\r
-                               Log.String("The arguments should be in the form of real: 13123.556"); Log.Ln\r
-                       END\r
-               ELSE\r
-                       Log.String("Example of simple console application based on BlackBox Component Builder."); Log.Ln;\r
-                       Log.String("You can pass two arguments and sum of them will be returned."); Log.Ln\r
-               END\r
-       END Init;\r
-\r
-BEGIN\r
-       Init\r
-END Init.
\ No newline at end of file
diff --git a/examples/console/runc b/examples/console/runc
deleted file mode 100755 (executable)
index d79b6dc..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-env \
-  BB_PRIMARY_DIR="../../Linux_Interp" BB_SECONDARY_DIR="$PWD" \
-../../Linux_Interp/blackboxc $@