File: hello.t

package info (click to toggle)
tom 1.1.1-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 6,340 kB
  • ctags: 2,244
  • sloc: objc: 27,863; ansic: 9,804; sh: 7,411; yacc: 3,377; lex: 966; asm: 208; makefile: 62; cpp: 10
file content (21 lines) | stat: -rw-r--r-- 482 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Hello World: example of a Complete TOM Program.
   Written by Pieter J. Schoenmakers <tiggr@ics.ele.tue.nl>
   $Id: hello.t,v 1.2 1998/01/12 22:50:57 tiggr Exp $  */

implementation class
HelloWorld

/* The main method (starts a program).  */
int
  main Array arguments
{
  [[[stdio out] print "Hello, world!"] nl];

  = 0;
}

end;

/* We don't need instances of HelloWorld, so this definition (which must be
   present) can be empty.  */
implementation instance HelloWorld end;