瀏覽代碼

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 $@