This directory contains some sample lsystems.
To quickly view them in action, the following setenv must be declared:
SESI_LSYS_FILE=/ufs/prisms/support/lsystems/default.lsys
Select an lsystem sop and use the load/save feature to select a definition.
Following is a more thorough explanation.


------------------------------------------------------------------------------

Predefined Lsystem Definitions:


Action allows users to save and load lsystem definitions as described 
in the tutorial.  This section describes that process in finer detail.

Whenever the user selects the load button, a menu of available definitions
is automatically created for selection.  The creation of this menu is a
two step process.  Firstly, the environment variable "SESI_LSYS_FILE" is
examined.  If it exists, definitions are retrieved from this file.  If it
does not exist the file "/ufs/prisms/support/lsystems/default.lsys" is used.

The content of this file may contain preprocessing directives or actual
lsystem definitions.


Preprocessing Directives:


Three preprocessing directives are supported:

1. Definitions:

   Any line with the following format expresses a definition:

   #define key sub

   In this case, all occurances of 'key' will be replaced by the characters
   of 'sub'.  Any number of definitions may be included with the following
   conditions:

   * Only one definition per line is processed.

   * 'key' and 'sub' musn't contain any white space.

   * Definitions may be redefined, but in the case where two definitions
     conflict, the second definition is used and a warning is issued.

   * All definitions have global scope and are applied alphabetically and
     iteratively.  For example the two definitions:

     #define val2  1.3
     #define val1  val2

     will replace all occurances of 'val1' with '1.3'

2. Inclusions:

   Any line with the following format will cause a secondary file to be
   processed:

   #include filename

   The parsing of this new filename is identical to the original, so filenames
   may be included sequentially or nested 20 levels deep.

3. Comments:

   Any remaining line beginning with # that is not a definition or inclusion
   is treated as a comment.  In this case the entire line is ignored as
   parsing is continued with the next line.


Lsystem Definition Format:


Lsystem definitions follow the following format:

definition_name
{
    keyword1	keyword_value1
    keyword2	keyword_value2
    keyword3	keyword_value3
    ...
}


The following table describes accepted keywords and appropriate values:

    keyword:		description:

    rules		This keyword begins a block of rule definitions.  
			Following this keyword are an opening brace, a premise,
			one or more rules and finally a closing brace:

			    rules
			    {
			premise
			rule1
			rule2
			...
			    }

			Notice the rules and premise are entered one per line 
			and all leading and trailing white space is retained.  
			This allows a user to pad rules as desired.  It is
			only within the enclosing braces that the definition
			directives described above are applied.


    generations		A numeric entry indicates the number of generations.

    contangl		A '1' indicates continuous angles should be selected,
			else a '0' should be used.

    contlength		A '1' indicates continuous lengths should be selected,
			else a '0' should be used.

    contwidth		A '1' indicates continuous width should be selected,
			else a '0' should be used.

    size		A numeric entry indicates the starting step length.

    angle		A numeric entry indicates the starting turning angle.

    thickness		A numeric entry indicates the starting branch thickness.

    smallsize		A numeric entry indicates the step length scaling factor.

    smallangl 		A numeric entry indicates the angle scaling factor.

    smallthick 		A numeric entry indicates the thickness scaling factor.

    gravity		A numeric entry indicates the default tropism value.

    rand		A numeric entry specifies the effect of randomness
			expressed as a percentage.

    seed		A numeric entry specifies the random generator seed.

    divw		A numeric entry specifies number of sides per branch
			segment.

    divh		A numeric entry specifies number of segments per branch.

    coltxtinc 		A numeric entry specifies the color and vertical texture
			increment.

    b			A numeric entry specifies the user defined 'b' parameter.

    c			A numeric entry specifies the user defined 'c' parameter.

    d			A numeric entry specifies the user defined 'd' parameter.

    geometry		The following value may be either 'skeleton' or 'tube'
			indicating the lsystem geometry type.

    contextignore 	The following value specifies which characters to ignore
			during a context test.  The characters must not contain
			whitespace.



See the file "support/lsystems/default.lsys" for an example of the above
format.  This file #includes other files grouped according to category. 
The final #include includes any lsystems created by the user.  These
lsystems are automatically appended to the file "$HOME/.prisms/custom.lsys".

When dealing with new lsystems, it is often useful to work directly in a
defintion file.  Write the file to disk.  Hitting the 'load' button in Action
will cause the file to be reread and changes will be reflected immediately.

