Sheerpower®
A Guide to the Sheerpower Language


Previous Contents Index

Chapter 3
3 Program Elements in Sheerpower
     3.1     Sheerpower Program Files
     3.2     Sheerpower Program Elements
         3.2.1         PROGRAM
         3.2.2         Sheerpower Reserved Words
     3.3     Sheerpower Program Structure
         3.3.1         END
         3.3.2         STOP
     3.4     ROUTINE/END ROUTINE
         3.4.1         Understanding Variable "Namespace" When Using Routines
         3.4.2         More on Routines
         3.4.3         EXIT ROUTINE
         3.4.4         REPEAT ROUTINE
     3.5     Passing Optional Parameters to Routines
         3.5.1         Parameter Passing Using WITH and RETURNING
         3.5.2         Private Variables in Routines
         3.5.3         Passing Parameters with Private Variables
         3.5.4         Error Messages when Passing Routine Parameters
     3.6     Program Lines
         3.6.1         Continuing Program Lines and Implied Continuation
             3.6.1.1             Implied Continuation
     3.7     Comments
         3.7.1         (//) Comment Text
         3.7.2         Routine Headers
         3.7.3         Comments With Line Continuation
     3.8     Debug Comments in SPDEV
     3.9     Program and Compile Directives
         3.9.1         %COMPILE
         3.9.2         %MESSAGE
         3.9.3         %MESSAGE ERROR
         3.9.4         %INCLUDE
         3.9.5         %INCLUDE CONDITIONAL
         3.9.6         %DEBUG
Chapter 4
4 Data Types in Sheerpower
     4.1     Data Types
         4.1.1         Integers
         4.1.2         Real Numbers
         4.1.3         String Data
     4.2     BOOLEAN
     4.3     Expressions
     4.4     Constants
         4.4.1         Numeric Constants
         4.4.2         String Constants
     4.5     Variables
         4.5.1         Arrays
         4.5.2         Substrings
     4.6     Table References
     4.7     Multiple Occurrence Fields
     4.8     Compound Expressions
         4.8.1         Numeric Expressions
         4.8.2         String Expressions
             4.8.2.1             Conditional Expressions
         4.8.3         Conditional Numeric Expressions
     4.9     Performing Relational Operations on Strings
         4.9.1         Logical Operators
         4.9.2         Bit Manipulation
     4.10     Order of Evaluation
     4.11     Using Parentheses for Clarity


Previous Next Contents Index