Grammatical Picture Generation
A Tree-Based Approach
Frank Drewes


Quick Introduction to TREEBAG

Below, you will find some brief instructions on how to use TREEBAG in order to try out the examples on the CD. To learn more about TREEBAG, you may either read Chapter 8 of Grammatical Picture Generation or the more detailed TREEBAG manual.

  1. The TREEBAG worksheet
    The worksheet is the main window of TREEBAG. It allows the user to create and modify a graph consisting of TREEBAG components: tree generators (i.e., tree grammars and tree transducers), algebras, and so-called displays. The output of a tree generator can be fed into tree transducers and algebras; that of an algebra can be fed into displays. New input relations can be established by clicking first on the source and then on the target node. A double click on a node opens a control pane that allows you to interact with the respective component (in the case of displays, the first double click opens the associated window whereas the second opens its control pane). A double click on an unoccupied area of the worksheet opens a file selector that allows you to load another component. For example, you may sometimes wish to load (further) copies of the free term algebra and the tree display in order to view generated trees. On the CD, their respective files (named tree-algebra and tree-display) can be found in the directory called examples.
  2. ReadMe
    For several worksheets specific information is provided. In these cases, the worksheet contains a ReadMe button. It will open a window containing the provided information.
  3. Classes of tree grammars
    Below follows a brief description of the classes of tree grammars used in the examples.

Back to main page