2017-08-07 65 views
0

我读了Niklaus Wirth的书,并希望从本书中尝试一些例子。哪里可以找到用于Ubuntu 16.04的Oberon模块?

,我尝试运行简单的奥伯伦的Hello World: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

回答

1

安装Oberon的模块奥伯伦文本通常与Oberon的操作系统相关联。我知道的唯一针对独立Oberon编译器的库标准是“Oberon-2编译器开发人员的奥克伍德准则”。使用模块,在的Hello World程序应尽可能简单

MODULE hello; 

    IMPORT Out; 

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

我也可以推荐其实现的最新版本(原件)奥伯伦语言的编译器OBNC:

http://miasap.se/obnc/

相关问题