ASMBUG

Example

ASMBUG turns the DEBUG switch on during the first phase of TSP execution (when the input program is being processed). When the debug switch is on, TSP produces much more printed output than it usually does. This output is normally not of interest to users, but may be helpful to a TSP programmer or consultant.

ASMBUG ;

Usage

Include the ASMBUG statement directly before any command(s) you believe are being parsed incorrectly. The DEBUG switch will remain on until a NOABUG statement is encountered. While it is on, the internal representation of each statement and equation will be displayed as it is stored.

For DEBUG output during the execution phase of the program, see the DEBUG statement.

Output

ASMBUG produces a considerable amount of output, although not quite as much as the DEBUG statement. The breakdown of every statement into its constituent parts by INPT is printed; if the statement is a GENR, SET, IF, FRML, or IDENT, intermediate results from FRML and PARSE are also printed. Finally the interpreted form of the command is shown, exactly as it is stored in data storage for later execution.

Example

ASMBUG ;

FRML EQ Y = A**(EXP(GAMMA*X)) + B*LOG(HSQ*Z);

NOABUG ;

This example will cause various intermediate results during the parsing of the equation to be printed.