From c78b89c8254b6046241bf480b41b8624b568edb0 Mon Sep 17 00:00:00 2001 From: antranigv Date: Thu, 1 Jun 2017 18:45:00 +0400 Subject: [PATCH] hello-world --- hello-world/Console/Hello.Mod | 10 ++++++++++ hello-world/Console/Makefile | 10 ++++++++++ hello-world/Out/Hello.Mod | 9 +++++++++ hello-world/Out/Makefile | 10 ++++++++++ 4 files changed, 39 insertions(+) create mode 100644 hello-world/Console/Hello.Mod create mode 100644 hello-world/Console/Makefile create mode 100644 hello-world/Out/Hello.Mod create mode 100644 hello-world/Out/Makefile diff --git a/hello-world/Console/Hello.Mod b/hello-world/Console/Hello.Mod new file mode 100644 index 0000000..4d52e15 --- /dev/null +++ b/hello-world/Console/Hello.Mod @@ -0,0 +1,10 @@ +MODULE hello; + + +IMPORT Console; + + +BEGIN + Console.String("Hello World!"); + Console.Ln +END hello. diff --git a/hello-world/Console/Makefile b/hello-world/Console/Makefile new file mode 100644 index 0000000..5101869 --- /dev/null +++ b/hello-world/Console/Makefile @@ -0,0 +1,10 @@ +VOC = /opt/voc/bin/voc + +all: + $(VOC) -m Hello.Mod + +clean: + rm *.c + rm *.h + rm *.o + rm *.sym diff --git a/hello-world/Out/Hello.Mod b/hello-world/Out/Hello.Mod new file mode 100644 index 0000000..8532f42 --- /dev/null +++ b/hello-world/Out/Hello.Mod @@ -0,0 +1,9 @@ +MODULE hello; + + +IMPORT Out; + + +BEGIN + Out.String("Hello, World"); Out.Ln +END hello. diff --git a/hello-world/Out/Makefile b/hello-world/Out/Makefile new file mode 100644 index 0000000..5101869 --- /dev/null +++ b/hello-world/Out/Makefile @@ -0,0 +1,10 @@ +VOC = /opt/voc/bin/voc + +all: + $(VOC) -m Hello.Mod + +clean: + rm *.c + rm *.h + rm *.o + rm *.sym