Languages
Oberon
Installing Oberon on Ubuntu in TIDE
Oberon
Oberon is a general-purpose programming language developed by Niklaus Wirth, known for its extreme simplicity, safety, and efficient design as the successor to Modula-2.
Installation
Install the Vishap Oberon Compiler (voc), which translates Oberon-2 source code into C:
apt update
apt install -y git build-essential gcc
git clone https://github.com/vishaps/voc.git
cd voc
make full
sudo make installVerification
Check the voc compiler version:
voc -versionWriting and Compiling Code
Create an Oberon source file named Hello.Mod:
MODULE Hello;
IMPORT Out;
BEGIN
Out.String("Hello, World!");
Out.Ln;
END Hello.Compile and run the module:
voc -s Hello.Mod -m
./Hello