TutorialStructural Search




Prev | Up | Next | Back | Forward | Tutorial Top

The manner of structural search depends on the windowing system. Click on the appropriate link for the one that you are using:

  • X Windows
  • NT

  • X Windows

    Command structural-search (menu: Edit/Structural Search   key: Alt+S) allows you to search for phrases according to their syntactic structure rather than their textual presentation.

    The search always starts from the current position of the structural selection, and may go forward or backward from there. If the search string is empty, it is treated as a wild-card that matches every string of the given syntactic context.

      Click SELECT on the procedure keyword to select the entire procedure.

      Invoke structural-search. Move the search dialog box to one side so that you can see what is going on. Select name from the Syntactic Category list. Repeatedly click on the Search button.

    The structural selection advances through each successive name in the code.

      Again, click SELECT on the procedure keyword to select the entire procedure. Enter e in the Search for box. Click the Search button.

    Note that structual-search advances to the first occurrence of e that is a name, and does not stop, for example, at occurrences of e within keywords.

      Click on the Cancel button to pop down the dialog box.
     

    NT

    Command structural-search (menu: Edit/Structural Find   key: Ctrl+Shift+F) allows you to search for phrases according to their syntactic structure rather than their textual presentation.

    The search always starts from the current position of the structural selection, and may go forward or backward from there. If the search string is empty, it is treated as a wild-card that matches every string of the given syntactic context.

      Click SELECT on the procedure keyword to select the entire procedure.

      Invoke structural-find. Move the search dialog box to one side so that you can see what is going on. Select name from the Syntactic Category list. Repeatedly click on the Search button.

    The structural selection advances through each successive name in the code.

      Again, click SELECT on the procedure keyword to select the entire procedure. Enter e in the Search text field. Click the Search button.

    Note that structual-find advances to the first occurrence of e that is a name, and does not stop, for example, at occurrences of e within keywords.

      Click on the Cancel button to pop down the dialog box.

    Forward