Navigation
  • Home
  • Fuzzy Logic Programs
  • Multi-Adjoint Lattices
  • Syntax
  • Procedural Semantics
  • Prolog Code Generation
  • How to Use FLOPER
    • Starting
    • Managing Projects
    • Loaging Fuzzy Programs
    • Using Lattices
    • Executing Scripts
    • Running Programs
    • Execution Tree
    • Declarative Traces
  • Bibliography
  • Downloads
Interesting Links
  • fuzzyXPath Project
  • FLUS Tool
  • DEC-Tau
  • Similarities in FLOPER
Home | How to Use FLOPER

Executing Scripts

 

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.

  1. We can create an empty .vfs file (File > Create Script File in Project...)
  2. We can load a .vfs file from a different directory (File > Add Script File in Project...)

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.