Download SmartScript User Manual

Transcript
SmartScript User Manual Chapter 2
Run Menu
Run menu provides these functions:
Compile ─ Check the syntax of the script. Since SmartScript is an interpreter, the compiling only
does syntax checking and will not generate any object or execution file. If there is any syntax
error, it will be shown in the window below. See Appendix D for error codes.
Execute─ Run the script. The execution will continue until the last statement is executed or the
execution is interrupted by the user. If any error occurs during the execution, an error message
will appear to show error code and message. Execution of script can be interrupted by Break or
Stop in the Run menu.
Step Into─ Execute the script one statement at a time. Each the menu item is selected, a
statement will be executed. After the execution of the statement, the script will stop to wait for
user operation. User can either select Stop Into again to execute the next statement or select
Step Over or Go to execute the remaining statements. Function key F8 can be used as a hot
key of Step Into. For statements in a subroutine, Step Into will also execute one statement at a
time.
Step Over─ Similar to Stop Into with the exception on the execution of statements in a
subroutine. When Step Over is used to execute a subroutine call, it will finish all statements in
the subroutine and return to the main program before stop for user operation.
Go─ Continue running all the remaining statements in the script until the end is reached or any
error occurs to interrupt its execution.
Break─ Halt the execution of the script. Step Into, Step Over or Go can be used to continue the
execution after Break.
Stop─ Stop the execution of the script. All opened files will be closed automatically when the
script is stopped.
2-5