我在哪里可以找到适用于 Ubuntu 16.04 的 Oberon 模块?



我读了Niklaus Wirth的书,想试试这本书中的例子。

我尝试运行简单的奥伯龙你好世界:http://groups.engin.umd.umich.edu/CIS/course.des/cis400/oberon/hworld.html#source

但是得到错误:

$ obc -o hello Hello.m
"Hello.m", line 4: the interface file for 'Oberon' cannot be found
>          IMPORT Oberon, Texts;
>                 ^^^^^^
"Hello.m", line 4: the interface file for 'Texts' cannot be found
>          IMPORT Oberon, Texts;
>                         ^^^^^

显然,我应该安装所需的模块。快速谷歌搜索不给我答案。那么我在哪里可以找到这个模块呢?

我从这个 deb http://spivey.oriel.ox.ac.uk/corner/Installing_OBC_release_3.0 安装 Oberon

模块 OberonTexts通常与 Oberon 操作系统相关联。据我所知,独立 Oberon 编译器的唯一库标准是"奥克伍德 Oberon-2 编译器开发人员指南"。使用模块Out,Hello World程序应该像

MODULE hello;
IMPORT Out;
BEGIN
Out.String("hello, world");
Out.Ln
END hello.

我还可以推荐编译器OBNC,它实现了最新版本的(原始(Oberon语言:

https://miasap.se/obnc/

最新更新