Browse Source

ConsCompiler simplified; tests updated

Alexander Shiryaev 12 years ago
parent
commit
d33b4dbc0c
5 changed files with 13 additions and 6 deletions
  1. BIN
      BlackBox/Cons/Mod/Compiler.odc
  2. BIN
      BlackBox/Dev/Mod/Linker.odc
  3. 9 0
      BlackBox/tests
  4. 1 3
      README
  5. 3 3
      TODO

BIN
BlackBox/Cons/Mod/Compiler.odc


BIN
BlackBox/Dev/Mod/Linker.odc


+ 9 - 0
BlackBox/tests

@@ -8,5 +8,14 @@ ObxPi.WritePi(1000)
 ConsCompiler.Compile('Obx/Mod', 'Hello0.odc')
 ConsCompiler.Compile('Obx/Mod', 'Pi.odc')
 
+# what is source of errors???
+ConsCompiler.Compile('', 'HostFonts.txt')
+
 DevElfLinker.LinkDll libBB.so := Kernel+ Files HostFiles StdLoader
 DATA
+
+# what is source of TRAP???
+./run-BlackBox <<DATA
+DevCompiler.CompileThis DevLinker
+#DevLinker.LinkDll BlackBox.exe := Kernel$+ Files HostFiles StdLoader
+DATA

+ 1 - 3
README

@@ -60,12 +60,10 @@ Files:
 				modified original BlackBox Dev/Mod/Compiler.odc
 			ElfLinker16.odc:
 				modified OpenBUGS Dev/Mod/ElfLinker16.odc
-		Cons/Mod
-			Compiler.odc:
-				modified original BlackBox Dev/Mod/Compiler.odc
 	new:
 		Cons/Mod
 			Interp.odc: console interpreter
+			Compiler.odc
 		libBB.so: compiled and linked OpenBSD shared library to run BlackBox
 		libBB0.so: compiled and linked OpenBSD shared library to run simple development interpreter
 

+ 3 - 3
TODO

@@ -1,9 +1,9 @@
 By priority:
 	ConsCompiler can not compile HostFonts.txt
 		?????
-	simplify ConsCompiler?
-		IMPORT DevCompiler;
-		DevCompiler.CompileText
+
+	runtime error on compiling DevLinker
+		?????
 
 	Services