A script is a file containing a list of commands (and their arguments, if necessary). VisualFLOPER has its own type of scripts (extension .vfs). These scripts must contain valid FLOPER commands, like parse, load, tree, ismode, and others. For example, the following script draws two execution trees, one with small interpretive steps and other where the interpretive phase is hid; after that, it runs the program.
ord: intro. arg: c(X). ord: ismode. arg: s. ord: tree. ord: ismode. arg: l. ord: tree. ord: run.
As with the other two kinds of file, we can include script files (extension .vfs) into Visual FLOPER by two different ways.
The loaded script will be allocated into the script files folder. To open it (either for reading it or editing it), double-click its name in the Project Tree, and it will be shown as a tab in the Edit Panel.
In order to save the modifications achieved in the script, click the Save button (or File > Save All).
It is possible to have more than one script in the same project in VisualFLOPER.
To run a script, click the Execute Script button, or choose the option Run > Execute Script, and select a script in the next dialog.
FLOPER does not allow script files, which are an exclusive element of VisualFLOPER.