next up previous contents
Next: The Command ``variables'' Up: The Commands of ``malaga'' Previous: The Command ``transmit'' (malaga)   Contents

The Command ``tree'' (malaga)

If you've started a grammatical analysis using one of the commands ma or sa (or their debug variants), you can make malaga display the result by entering

tree

If the analysis has not yet finished (in debug mode or in case of an error), an intermediate result will be shown.

If you're executing the command tree for the first time, or if you've closed the Tree window before, a new tree window will open in which the current analysis tree will be displayed.

If there is already a Tree window open, the new analysis tree will be displayed in this window.

In the upper left corner of the Tree window, you will see the sentence or the word form that has been analysed. Below, the analysis tree is displayed. An analysis path always follows the edges from the left to the right.

A circle node stands for a LAG state, a two-circle node stands for an end state.

Above each edge, the Next surface that has been read in by the corresponding rule application is displayed. On the bottom of an edge, you'll see the name of the applied rule.

You can click on a node using the left mouse button. Then another window will open, namely the Path window. The Path window displays the surface, the category and the successor rules of the state you've clicked on. The node will be highlighted by a fatter border. If you've already clicked on a node, you can click on one of its successor nodes using the right mouse button. Then all rule applications, from the state clicked on previously up to the state clicked on this time, will be displayed in the Path windows. The corresponding path will be highlighted in the Tree window.

If you're clicking on a Next surface using the left mouse button, the surface and its category will be displayed in the Path window.

You can also click on rule names using the left mouse button. Then the corresponding rule application will be displayed in the Path window, i.e. the Start, Next and Result surface, the Start, Next and Result category, and the successor rules.

There are some commands that can be started from the Tree menu bar:

Window:
Here you can select from two menu items:
Export Postscript$...$:
Convert the displayed analysis tree to a Postscript file.
Close:
Close the Tree window.
Font size:
Select an item in this menu to adjust the font size.
View:
Specify which nodes of the analysis tree are actually displayed.
Result paths only:
Only the nodes that are part of a complete analysis are displayed.
All but dead ends:
All analysis states are displayed.
All nodes:
All analysis states are displayed, and also rectangular nodes for rule applications that did not succeed (dead ends).
Result:
Select an end state to display in the Path window.
First result:
Display the first end state.
Previous result:
If there is an end state displayed in the Path window, jump to the previous one.
Next result:
If there is an end state displayed in the Path window, jump to the next one.
Last result:
Display the last end state.

The Path windows has got an own menu bar which contains the menus Window, Font size and Result with the same menu items as the corresponding menus in the Tree window.


next up previous contents
Next: The Command ``variables'' Up: The Commands of ``malaga'' Previous: The Command ``transmit'' (malaga)   Contents
Bjoern Beutel