(* testx02.Mod oberon test program
Change the background color!

Hello World Program

Go to Description

What is hweb

Jump to Listing

 
   *)
MODULE Test02;(* *)

(*
    Hello World.
*)

IMPORT 
              Out;              


BEGIN
   
    Out.String("Hello World"); Out.Ln;
    HALT(1);
 
 

END Test02.
(*  
The HELLO program is our first test of each programming language we are exposed to. And it has even lost its role as a useful test of a programming language. But, I think it still serves some uses.

For example, if it is very hard to write your first program for the hello example, that many be an indication that there is a problem with the language or its mapping to the system you are writing to.

The hello functions can be implemented in different ways. The string printing can be: a built in mapping directly to the hardware, or only calls to parts of the operating system libraries, or a compromise of builtins and operating system libraries.

Go to top

HWEB - a literate-programming tool
Hweb supports literate programming---the art of writing programs as documents for human readers. Hweb is a set of tools and methods for using html documents with programming source code. Hweb is a very simple tool, with a great idea behind it.
Interleave documentation with html and source code.
Hweb comes with an HTML extracter called, htangle.

Keywords: literate programming, WEB, hweb

The program source embedded in this html document should compile with the oo2c Oberon compiler without any change to the text of this html file. Only the file name needs to be changed:
from testx02.html to textx02.Mod
Then compiling the program should work.

Go to top

*)