next up previous contents
Next: Classes and Types Up: No Title Previous: Delimiters

Programs

 
program ::= [ class_declaration ] ( ';' [ class_declaration ] )\stern .

Example: class MAIN is ...end; class TREE(T<ORDERED) is ...end tex2html_wrap_inline1707

The text of a program in SATHER-K is a collection of class declarations. It is specified by designating a class declaration K as the main class. K contains the main program which is a procedure main. K must be a concrete class (cf. 2.1).

Hint: The classes belonging to a program may be partially stored within the same file or may be distributed across many files. The language does not determine how to find those files. tex2html_wrap_inline1707





Martin Trapp
Mon Feb 17 16:49:16 MET 1997