[Oberon] Fwd: How to run a module.
Jörg
joerg.straube at iaeth.ch
Tue Feb 23 18:40:16 CET 2016
Hi
Try this one; hopefully this works better with "voc".
MODULE hello;
IMPORT Console;
BEGIN
Console.String("Hi there");
Console.Ln
END hello.
-----Original Message-----
From: Oberon [mailto:oberon-bounces at lists.inf.ethz.ch] On Behalf Of Srinivas
Nayak
Sent: Dienstag, 23. Februar 2016 18:00
To: ETH Oberon and related systems <oberon at lists.inf.ethz.ch>
Subject: [Oberon] Fwd: How to run a module.
Dear All,
Anybody has experience with the below problem?
Kindly help.
With thanks and best regards,
Yours sincerely,
Srinivas Nayak
Home: http://www.mathmeth.com/sn/
Blog: http://srinivas-nayak.blogspot.in/
-------- Forwarded Message --------
Subject: How to run a module.
Date: Tue, 23 Feb 2016 22:01:49 +0530
From: Srinivas Nayak <sinu.nayak2001 at gmail.com>
To: norayr at arnet.am
Dear Norayr,
I compiled and installed Vishop Oberon compiler 1.1 on my linux.
Below is my Hello.Mod file collected from net.
I compiled the file using voc -m
When I tried to run the module using ./Hello I see nothing.
What is that I missed?
~# cat Hello.Mod
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.
With thanks and best regards,
Yours sincerely,
Srinivas Nayak
Home: http://www.mathmeth.com/sn/
Blog: http://srinivas-nayak.blogspot.in/
--
Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
https://lists.inf.ethz.ch/mailman/listinfo/oberon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4847 bytes
Desc: not available
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20160223/e2f94a14/attachment.p7s>
More information about the Oberon
mailing list