Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telix/SALT v3.15 & RS-232, Hayes - <b>structure</b> http://www.X-Hacker.org [<<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

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson