[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.1 STD:Top File

Each Bunao script must begin with STD:Top File. It is the only module at the top level of the script hierarchy, and is the first module that Bunao evaluates when running a script. All of its children are globule definitions. See section STD:Globule Definition.

Use the Main Glob field to set the name of the globule that Bunao should execute first. By default, this is set to `Main' (and the STD:Globule Definition module defining `Main' is already created as the first child below STD:Top File.

The checkbox Allow standalone Unix shell execution lets this Bunao module be executed simply by typing its name at the command line. For example, to execute a script saved as `myscript.tcl', simply type:

 
% myscript.tcl

Without the standalone option enabled, the script must be explicitly passed as an argument to the Tcl interpreter, tclsh:

 
% tclsh myscript.tcl

By default, standalone execution is enabled.

STD:Top File user interface:

images/std-topfile

STD:Top File attribute list:
Attribute Type Default Description
mainglob globule name `Main' name of first globule to run
shellbang boolean `1' enable standalone execution



This document was generated on October, 28 2005 using texi2html