浏览代码

example for text2odc file format conversion

Ivan Denisov 5 年之前
父节点
当前提交
af44050863
共有 5 个文件被更改,包括 30 次插入0 次删除
  1. 二进制
      examples/append/System/Mod/Init.odc
  2. 20 0
      examples/text2odc/README
  3. 二进制
      examples/text2odc/System/Mod/Text2odc.odc
  4. 6 0
      examples/text2odc/link
  5. 4 0
      examples/text2odc/runc

二进制
examples/append/System/Mod/Init.odc


+ 20 - 0
examples/text2odc/README

@@ -0,0 +1,20 @@
+# Application for convetion utf8-encoded text documents to "odc" format
+
+# Installation for Linux
+
+# 1. Prepare Interp version of BlackBox in "Linux_Interp" folder:
+cd ../../BlackBox
+./switch-target `uname -s` Interp
+./build
+./export ../Linux_Interp
+
+# 2. Compile this example:
+cd ../examples/text2odc
+echo "DevCompiler.CompileThis Text2odc" | ./runc
+
+# 3. Link standalone executable:
+./link
+
+# 3. For demonstration run:
+FILEPATH='' FILENAME='README' ./text2odc
+

二进制
examples/text2odc/System/Mod/Text2odc.odc


+ 6 - 0
examples/text2odc/link

@@ -0,0 +1,6 @@
+#!/bin/sh
+
+./runc <<DATA
+Dev2Linker1.LinkElf `uname -s` text2odc := Kernel$+ Files HostFiles Math Strings Dates Meta Log Dialog Services Fonts Ports Stores Converters Sequencers Models Printers Views Controllers Properties Printing Mechanisms Containers Documents Windows Console StdInterpreter HostConsole HostRegistry HostFonts HostWindows HostDates HostDialog StdDialog ConsLog HostLang ConsLog TextModels TextRulers TextSetters TextViews TextControllers TextMappers StdApi StdCmds StdLinks HostTextConv Text2odc
+DATA
+

+ 4 - 0
examples/text2odc/runc

@@ -0,0 +1,4 @@
+#!/bin/sh
+env \
+  BB_PRIMARY_DIR="../../Linux_Interp" BB_SECONDARY_DIR="$PWD" \
+../../Linux_Interp/blackbox $@