mirror of
https://github.com/vishapoberon/oberonbyexample.git
synced 2026-04-05 21:02:25 +00:00
hello-world
This commit is contained in:
parent
840a24f3a7
commit
c78b89c825
4 changed files with 39 additions and 0 deletions
10
hello-world/Console/Hello.Mod
Normal file
10
hello-world/Console/Hello.Mod
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
MODULE hello;
|
||||
|
||||
|
||||
IMPORT Console;
|
||||
|
||||
|
||||
BEGIN
|
||||
Console.String("Hello World!");
|
||||
Console.Ln
|
||||
END hello.
|
||||
10
hello-world/Console/Makefile
Normal file
10
hello-world/Console/Makefile
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
VOC = /opt/voc/bin/voc
|
||||
|
||||
all:
|
||||
$(VOC) -m Hello.Mod
|
||||
|
||||
clean:
|
||||
rm *.c
|
||||
rm *.h
|
||||
rm *.o
|
||||
rm *.sym
|
||||
9
hello-world/Out/Hello.Mod
Normal file
9
hello-world/Out/Hello.Mod
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
MODULE hello;
|
||||
|
||||
|
||||
IMPORT Out;
|
||||
|
||||
|
||||
BEGIN
|
||||
Out.String("Hello, World"); Out.Ln
|
||||
END hello.
|
||||
10
hello-world/Out/Makefile
Normal file
10
hello-world/Out/Makefile
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
VOC = /opt/voc/bin/voc
|
||||
|
||||
all:
|
||||
$(VOC) -m Hello.Mod
|
||||
|
||||
clean:
|
||||
rm *.c
|
||||
rm *.h
|
||||
rm *.o
|
||||
rm *.sym
|
||||
Loading…
Add table
Add a link
Reference in a new issue