Next: , Previous: up, Up: Commands


4.43 The Command variables

If you invoke variables, you get the values of all Malaga variables that are currently defined. The variables will be shown in the order of their definitions. You can only use the command variables in debug mode or if the previous analysis has stopped with an error in the combination rules.

If the option use-display is off, the variables will be sent to standard output:

     malaga> sa-debug You are so beautiful.
     entering rule "Noun", surf: "", link: "You", state: 1
     debug> variables
     $sentence = [class: main_clause,
                  parts: <>]
     $word = [class: pronoun,
              result: S2]
     debug>

If the option use-display is on and malshow is used as display-cmd, the variables will be displayed in window on their own. If the Variables window is not open yet, it will open now. If there is an open Variables window, the new variable contents will be displayed in this window.

You can left-click on a variable name to make its value disappear or appear again.

The Variables window has a menu with some commands:

Window
Export Postscript...
Export the displayed variables as an Embedded Postscript file. Currently, only ASCII, Latin-1 Supplement, Hangul Compatibility Jamo and Hangul Syllables can be converted to Postscript.
Close
Close the Variables window.

Style
Font Size ...
Select an item to adjust the font size.
Hanging
Normally, all values and subvalues are aligned at their bottom. If this option is active, records are “hanging down”: they are aligned at their top.

Variables
Show All
Display the values of all variables currently defined.
Hide All
Suppress the values of all variables currently defined.