AUTOHIT 2003 SIMLANGUAGE GUIDE DOCUMENTATION Copyright Erich P Gatejen (c) 1989,1997,2003,2004 See license for details. WIP. See the other documents for more information. ============================================================================== CONCEPTS ============================================================================== - Every program is well formed XML. The DTD can be found at /lib/dtd/sim.dtd. - Every program can be treated as a subroutine. The section describes the input parameters ( and ) and output. The input parameters are just variables that the program expects to find in scope. - NOTE: The compiler and runtime don't currently verify that the input parameters are in scope. Also, any variable in scope can be used by the program. So, technically, the inputs are not needed. HOWEVER, the *is* required! Since subroutine calls work life functions, they can return a a result. The tells it which local variable to return as the result. ============================================================================== TAGS ============================================================================== HEADER // defines the output var // always create new // create new only if tagged // force an exit from the stript section. -- -------------------------------------------------------------- Contains information about the program. It has the following sections in the sequence described: REQUIRED REQUIRED REQUIRED REQUIRED - but may be empty. -- -------------------------------------------------------------- Contains the actual executable. It must have at least one instruction. The instructions are as follows: