我读了Niklaus Wirth的书,想从这本书中尝试一些例子。
我试着运行简单的Oberon hello world:http://groups.engin.umd.umich.edu/CIS/course.des/cis400/oberon/hworld.html#source
但是get错误:
$ 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
发布于 2017-09-04 04:33:27
模块Oberon和文本通常与Oberon操作系统相关联。据我所知,用于独立Oberon编译器的唯一库标准是“Oakwood针对Oberon-2编译器开发人员的指南”。使用module Out,Hello World程序应该像下面这样简单
MODULE hello;
IMPORT Out;
BEGIN
Out.String("hello, world");
Out.Ln
END hello.我还可以推荐编译器OBNC,它实现了(原始) Oberon语言的最新版本:
https://stackoverflow.com/questions/45539644
复制相似问题