| iMatix home page
| Libero home page | Libero documentation
| << | < | > | >>
Libero Libero
Version 2.32

Extra Variables In A :do Loop

Within the different types of :do loop, various extra variables are available. Usually you'll need these to construct tables or lists of names.

:do while condition

Repeats the block of code while condition is true. The condition is a logical condition as described above. The loop is executed 0..n times.

:do event

Builds a list of events. Outputs the block for each event in the dialog.

:do event local

Builds a list of events. Outputs the block for each event in the current state, within a :do state loop. Provides the same variables as :do event, and also:

:do state

Builds a list of states. Outputs the block for each state in the dialog.

:do module

Builds list of modules. Outputs the block for each module in the dialog.

:do action

Builds table containing one row per state, with one item per row for each event transition. Each item is the number of an action vector. Invalid state/event transitions are filled by the value of $row_null.

:do nextst

Builds table containing one row per state, with one item per row for each event transition. Each item is the number of the next state. Invalid state/event transitions are marked by the value of $row_null.

:do vector

Builds table of action vectors. An action vector is a list of modules executed in series for a state/event transition. Duplicate vectors are collapsed.

:do overflow

Used to build source code that has to be output over several lines. The block is output until the overflow row is empty.

:do stubs [filename]...

Builds a set of module stubs at the end of the filename. If no filename is specified, assumes you mean the $source file. You can specify a list of filenames; then Libero will scan each file in the list for existing modules, and build stubs for any undefined modules at the end of the first filename. This is useful if you define standard modules in generated code (e.g. an include file).

If you use the -nostubs option, Libero ignores the :stubs command. If you use the -noidle option, Libero does not check the source for idle (ie. unused) modules.


| << | < | > | >>
| Libero Technical Reference | Read-Only Variables | Schema Commands | Syntax Of Expressions | Syntax Of Logical Conditions | Control Variables | Standard :do Conditions | Extra Variables In A :do Loop | General Rules for Code Generation | Generating Module Stubs | Generating COBOL Code | The State Machine Algorithm | Compiled-In Limitations | Quick Reference - Libero Schema Language
iMatix
Copyright © 1996-97 iMatix