[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  STRUCTURE

  A SALT script has the following format:

       <global_variable_definition>
            ...
       <global_variable_definition>

       <function_definition>

       <global_variable_definition>
            ...
       <global_variable_definition>

       <Function_definitions>

            ...

  and so on. Basically a script file consists of definition of global
  variables (variables which are available to any part of the script
  file after which they are defined, and function definitions
  (functions are lines of code clustered together in a group, so that
  they can be called by a name). A script file does not have to have
  any global variables or functions, but to run it must at least have
  one function called 'main'. The following, for example, is a com-
  plete script file:

       main()

       {

        prints ("hello");

       }

  When compiled and run, this script would print the string "hello" to
  the screen.

See Also: functions statements
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson