我想在Windows上使用Oxford Oxford Oberon编译器。 下载并安装了编译器。
在下载方面,它说它是用逗号“ obc”在shell中打开的。
我在这里找到此用户手册
http://demos.cs.up.ac.za/COS333/2004/JavaToOberon-2/22105728/usermanual.pdf
基本上,..我只是尝试在其中添加一些代码:
PS C:\WINDOWS\system32> obc
Usage: obc [flag ...] file ...
-O0 Turn off peephole optimiser
-b Disable runtime checks
-v Print compiling and linking commands
-w Turn off warnings
-x Enable language extensions
-I dir Add dir as search directory for imported modules
-rsb Keywords and built-ins are in lower case
-c Compile only; omit linking step
-o file Set output file for linking
-s Strip symbol table in linker output
-j0 Disable JIT translator at runtime
-k n Set runtime stack size
-07 Compile Oberon-07 source
*.m, *.mod Oberon source file to be compiled
*.k Bytecode file for linking
PS C:\WINDOWS\system32> MODULE Fac;
PS C:\WINDOWS\system32> IMPORT In,Out;
IMPORT : Die Benennung "IMPORT" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines
ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern
enthalten), und wiederholen Sie den Vorgang.
In Zeile:1 Zeichen:1
+ IMPORT In,Out;
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (IMPORT:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\WINDOWS\system32> VAR n: INTEGER;
In Zeile:1 Zeichen:1
+ VAR n: INTEGER;
+ ~~~
Das Schlüsselwort "var" wird in dieser Version der Sprache nicht unterstützt.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ReservedKeywordNotAllowed
因此命令不起作用。 我感觉自己错过了一些东西,也很难在互联网上找到与之相关的东西。
如果有人知道这里出了什么问题,我将非常感谢您的帮助!
答案 0 :(得分:0)
首先,您需要创建一个名称为Fac.mod
的文本文件,其中包含模块Fac。然后,您可以在控制台窗口中键入obc Fac.mod
来编译模块。