The Oberon Programming Language
Free
resources updated everyday:
XXXLINKSXX
The Oberon programming language is developed at Eidegnossishe Technische Hocsshule Zurich with means Swiss Federal Institute of Technology) in 1988, by Niklaus Wirth. Having an obsession with simplicity Wirth decided to include much of Pascal's syntax, while incorporating many of the object oriented features of Modula-2 (both of these languages were also created by Wirth). Oberon is considered to be heir to Modula-2.
Wirth'sgoal was to create a language that was exstensable and flexible. The result was a full object oriented language that was fit to accompany further development of Cres workstations.
Significant Language Features
Sample Program
Source Code: (Hello World)
(* This is designed to run Under Oberon V4 *)
MODULE Hello;
IMPORT Oberon, Texts;
VAR W: Texts.Writer;
PROCEDURE World*;
BEGIN
Texts.WriteString(W, "Hello World!");
Texts.WriteLn(W);
Texts.Append(Oberon.Log, W.buf);
END World;
BEGIN
Texts.OpenWriter(W);
END Hello.
Once this module is compiled, Executing the command Hello.World will print "Hello World!" to the system log.
This code demonstrates the usage of Oberon's Texts module. W is used as text writer stream. Output is displayed to the oberon's Log window by appending the buffer of the writer stream to Oberon.log.
This program tested on Oberon V4 Windows 32 bit version. When you create a new file Hello.Mod in Oberon's editor (Edit.Open Hello.Mod), select this text now and copy it it to the clipboard (File/Copy), paste it into Hello.Mod by placing the caret in that window and executing Clipboard.Copy command anywhere on the screen. Compiling is done by placing a marker (F1 key) on Hello.Mod window and running Compiler.Compile * in the System.Tool.